AppleConfiguration.cmake 933 B

1234567891011121314151617181920212223
  1. find_library(FOUNDATION Foundation)
  2. find_library(APPKIT AppKit)
  3. find_library(IOKIT IOKit)
  4. find_library(COCOA Cocoa)
  5. find_Library(CARBON Carbon)
  6. find_library(SECURITY Security)
  7. find_library(MEDIAPLAYER MediaPlayer)
  8. set(OS_LIBS ${FOUNDATION} ${APPKIT} ${IOKIT} ${COCOA} ${SECURITY} ${CARBON} spmediakeytap hidremote plistparser letsmove)
  9. set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -weak_framework MediaPlayer")
  10. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
  11. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.9 -fno-omit-frame-pointer")
  12. set(WARNINGS "-Wall")
  13. set(HAVE_UPDATER 1)
  14. find_program(UPDATER_PATH updater HINTS ${CMAKE_FIND_ROOT_PATH}/update_installer/ NO_DEFAULT_PATH)
  15. if(${UPDATER_PATH} MATCHES "UPDATER_PATH-NOTFOUND")
  16. set(HAVE_UPDATER 0)
  17. message(STATUS "will build without the updater")
  18. endif(${UPDATER_PATH} MATCHES "UPDATER_PATH-NOTFOUND")
  19. set(INSTALL_BIN_DIR .)
  20. set(INSTALL_RESOURCE_DIR Resources)