-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathCMakeLists.txt
37 lines (30 loc) · 967 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
set(APP_NAME "gsage")
include_directories(include)
include_directories(${gsage_SOURCE_DIR}/Core/include)
include_directories(${gsage_SOURCE_DIR}/Vendor/OgreCrowd/include)
include_directories(${gsage_SOURCE_DIR}/Vendor/Sol2/include)
include_directories(${gsage_SOURCE_DIR}/Vendor/jsoncpp/include)
include_directories(${gsage_SOURCE_DIR}/Vendor/easylogging/include)
include_directories(${gsage_SOURCE_DIR}/Vendor/cpp-channel/include)
include_directories(${LUAJIT_INCLUDE_DIR})
FILE(GLOB sources src/*.cpp)
set(LIBS
GsageCore
easyloggingpp
cpp-channel
${LUAJIT_LIBRARIES}
)
if(WIN32)
gsage_executable(${APP_NAME} ${sources} ${gsage_SOURCE_DIR}/resources/editor/gsage.ico ${gsage_SOURCE_DIR}/resources/editor/gsage.rc)
else(WIN32)
gsage_executable(${APP_NAME} ${sources})
endif(WIN32)
if(APPLE)
set(LIBS ${LIBS}
${COREFOUNDATION_LIBRARY}
${CARBON}
${IOKIT}
${COCOA_LIBRARY}
)
endif(APPLE)
target_link_libraries(${APP_NAME} ${LIBS})