diff options
author | Matteo Ceruti <matteo.ceruti@gmail.com> | 2023-08-26 01:10:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-08-26 01:39:47 +0200 |
commit | 08ec8906f27880d13ee48d16245904489e141a95 (patch) | |
tree | edccc08f4349eb13ef8150b8d41ca51db72e69b6 /opentrack/CMakeLists.txt | |
parent | 39bcce3786ac9f08f0ff80b7c51bd4b2e7a96106 (diff) |
Disable macOS's AppNap (throttling) while tracking
Diffstat (limited to 'opentrack/CMakeLists.txt')
-rw-r--r-- | opentrack/CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/opentrack/CMakeLists.txt b/opentrack/CMakeLists.txt index 9bf5cb9b..0fd72475 100644 --- a/opentrack/CMakeLists.txt +++ b/opentrack/CMakeLists.txt @@ -13,4 +13,13 @@ set_target_properties(opentrack-executable PROPERTIES set_source_files_properties(resources.rc OBJECT_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/opentrack.ico") +if(APPLE) + set_source_files_properties(appnap_mac.mm PROPERTIES COMPILE_FLAGS "-fno-objc-arc") + target_sources(${self} PRIVATE appnap_mac.mm) +endif() + target_link_libraries(${self} opentrack-user-interface opentrack-version) + +if(APPLE) + target_link_libraries(${self} "-framework Foundation") +endif() |