diff options
author | Henrique Alves <henrique.alves@itsjungle.xyz> | 2024-04-23 23:40:55 +0300 |
---|---|---|
committer | Henrique Alves <henrique.alves@itsjungle.xyz> | 2024-04-23 23:40:55 +0300 |
commit | 1d579be7f2469afdc2074af29d96dece70a62daa (patch) | |
tree | b3c6c99dac21d166ab8341e04ca505108595aee3 /CMakeLists.txt | |
parent | 4e6f31d4c443ff2e69366261e4ff48776011c42a (diff) | |
download | gamejam-slgj-2024-1d579be7f2469afdc2074af29d96dece70a62daa.tar.gz gamejam-slgj-2024-1d579be7f2469afdc2074af29d96dece70a62daa.tar.bz2 gamejam-slgj-2024-1d579be7f2469afdc2074af29d96dece70a62daa.zip |
Fix cmakelist for mac
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2bb8e46..b41afcb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -32,6 +32,13 @@ target_sources(${PROJECT_NAME} PRIVATE ${PROJECT_SOURCES}) target_include_directories(${PROJECT_NAME} PRIVATE ${PROJECT_INCLUDE}) target_link_libraries(${PROJECT_NAME} PRIVATE raylib PkgConfig::GUILE_PKG) +# Checks if OSX and links appropriate frameworks (Only required on MacOS) +if (APPLE) + target_link_libraries(${PROJECT_NAME} PRIVATE "-framework IOKit") + target_link_libraries(${PROJECT_NAME} PRIVATE "-framework Cocoa") + target_link_libraries(${PROJECT_NAME} PRIVATE "-framework OpenGL") +endif() + # Setting ASSETS_PATH target_compile_definitions(${PROJECT_NAME} PUBLIC ASSETS_PATH="./assets/") target_compile_definitions(${PROJECT_NAME} PUBLIC SCRIPTS_PATH="./scripts/") |