diff options
author | danenders <danenders@gmail.com> | 2022-06-26 21:26:23 -0400 |
---|---|---|
committer | danenders <danenders@gmail.com> | 2022-06-26 21:33:59 -0400 |
commit | 49f22d6f41d46635502d9e2e492ee36a1197a4de (patch) | |
tree | 0ae7b57010487bad060487d7bf937bc2a24d88c0 /CMakeLists.txt | |
parent | 57dd05872afca68f6a3dc4902b58cfa8c363ce50 (diff) |
adding macos support in progress
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2984c8f..acf9809 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,10 +57,12 @@ set(LUA_LIBRARIES lua lualib lauxlib) include_directories(${PROJECT_SOURCE_DIR}/thirdparty/lua) # System specific includes -if (UNIX) +if (UNIX AND NOT APPLE) set(RES_LIB src/resources/Resources.cpp src/resources/Resources.h src/resources/linux/LinuxResources.cpp src/resources/linux/LinuxResources.h) elseif (WIN32) set(RES_LIB src/resources/Resources.cpp src/resources/Resources.h src/resources/windows/WindowsResources.cpp src/resources/windows/WindowsResources.h) +elseif (APPLE) + set(RES_LIB src/resources/Resources.cpp src/resources/Resources.h src/resources/macos/MacResources.cpp src/resources/macos/MacResources.h) endif () add_executable(${PROJECT_NAME} src/main.cpp src/Level.cpp src/Level.h src/CApi.h src/Scene.h src/LuaApi.h src/MessageBox.h ${RES_LIB}) |