diff options
| author | OmniTroid <davidskoland@gmail.com> | 2023-01-05 08:10:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-05 08:10:30 +0100 |
| commit | 74b02513e36063dabcd8c3b38d18285176406913 (patch) | |
| tree | 9e1659e530d019499f183fb4164b9a7409f26c50 /CMakeLists.txt | |
| parent | a449aa86e9f1758b5661fba640a626bc12080988 (diff) | |
Cmake fixes (#885)
* Add required macos frameworks
* Make building tests optional
* Add missing source and header files from cmakelists
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d7714b6..fad3de08 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,7 +37,13 @@ target_link_libraries(Attorney_Online PRIVATE Qt5::Core Qt5::Gui Qt5::Network Qt Qt5::WebSockets bass bassmidi bassopus discord-rpc) target_compile_definitions(Attorney_Online PRIVATE DISCORD) +if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + target_link_libraries(Attorney_Online PRIVATE "-framework CoreFoundation" "-framework Foundation" "-framework CoreServices") +endif() + # Subdirectories -add_subdirectory(test) +if (AO_BUILD_TESTS) + add_subdirectory(test) +endif() add_subdirectory(src) add_subdirectory(include) |
