-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
52 lines (44 loc) · 965 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# CMakeList.txt
# Compilation on Mac System not yet tested, please contact us at http://www.is06.com/contact.php
# if you want to participate! :)
cmake_minimum_required(VERSION 2.6)
project(Invisible-Spirit)
set(EXECUTABLE_OUTPUT_PATH bin/${CMAKE_BUILD_TYPE})
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s -O2 -Wall -pedantic")
find_package(Irrlicht REQUIRED)
find_package(FmodEx REQUIRED)
find_package(Newton REQUIRED)
find_package(Boost REQUIRED)
file(
GLOB_RECURSE
source_files
src/*.cpp
)
add_executable(
Invisible-Spirit
${source_files}
)
IF(WIN32)
target_link_libraries(
Invisible-Spirit
boost_thread
${IRRLICHT_LIBRARY}
${FMODEX_LIBRARY}
${NEWTON_LIBRARY}
)
ELSE(WIN32)
target_link_libraries(
Invisible-Spirit
${IRRLICHT_LIBRARY}
GL
GLU
Cg
CgGL
Xxf86vm
Xext
X11
${FMODEX_LIBRARY}
${NEWTON_LIBRARY}
)
ENDIF(WIN32)