AppleConfiguration.cmake 839 B

123456789101112131415161718192021
  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. set(OS_LIBS ${FOUNDATION} ${APPKIT} ${IOKIT} ${COCOA} ${SECURITY} ${CARBON} spmediakeytap)
  8. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mmacosx-version-min=10.9 -fno-omit-frame-pointer")
  9. set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mmacosx-version-min=10.9 -fno-omit-frame-pointer")
  10. set(WARNINGS "-Wall")
  11. set(HAVE_UPDATER 1)
  12. find_program(UPDATER_PATH updater HINTS ${CMAKE_FIND_ROOT_PATH}/update_installer/ NO_DEFAULT_PATH)
  13. if(${UPDATER_PATH} MATCHES "UPDATER_PATH-NOTFOUND")
  14. set(HAVE_UPDATER 0)
  15. message(STATUS "will build without the updater")
  16. endif(${UPDATER_PATH} MATCHES "UPDATER_PATH-NOTFOUND")
  17. set(INSTALL_BIN_DIR .)
  18. set(INSTALL_RESOURCE_DIR Contents/Resources)