Skip to content

Commit

Permalink
Setup cmake files and project code for Objective-C code #17
Browse files Browse the repository at this point in the history
We want to use CoreWLAN framework.
  • Loading branch information
npyl committed Aug 9, 2018
1 parent c288aed commit 4493f87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 1 addition & 6 deletions cmake/ConkyPlatformChecks.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,6 @@ if(BUILD_MATH)
set(conky_libs ${conky_libs} -lm)
endif(BUILD_MATH)

if(OS_DARWIN AND BUILD_IPGFREQ)
find_library(IPG IntelPowerGadget)
set(conky_libs ${conky_libs} ${IPG})
endif(OS_DARWIN AND BUILD_IPGFREQ)

if(BUILD_ICAL)
check_include_files(libical/ical.h ICAL_H_)
if(NOT ICAL_H_)
Expand Down Expand Up @@ -524,4 +519,4 @@ if(DEBUG)
--since=${VERSION_MAJOR}-${VERSION_MINOR}-01 --pretty=oneline COMMAND
${APP_WC} -l COMMAND ${APP_AWK} "{print $1}" RESULT_VARIABLE RETVAL
OUTPUT_VARIABLE COMMIT_COUNT OUTPUT_STRIP_TRAILING_WHITESPACE)
endif(DEBUG)
endif(DEBUG)
4 changes: 4 additions & 0 deletions src/darwin.mm
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
#include <IntelPowerGadget/EnergyLib.h>
#endif

#ifdef BUILD_WLAN
#import <CoreWLAN/CoreWLAN.h>
#endif

/* clock_gettime includes */
#ifndef HAVE_CLOCK_GETTIME
#include <errno.h>
Expand Down

0 comments on commit 4493f87

Please sign in to comment.