/
CMakeLists.txt
55 lines (46 loc) · 1.47 KB
/
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
53
include(BuildHelpers.CMakeLists.txt)
include_directories(
${CMAKE_SOURCE_DIR}/gameplay/src
${CMAKE_SOURCE_DIR}/external-deps/lua/include
${CMAKE_SOURCE_DIR}/external-deps/bullet/include
${CMAKE_SOURCE_DIR}/external-deps/libpng/include
${CMAKE_SOURCE_DIR}/external-deps/oggvorbis/include
${CMAKE_SOURCE_DIR}/external-deps/zlib/include
${CMAKE_SOURCE_DIR}/external-deps/openal/include
${CMAKE_SOURCE_DIR}/external-deps/glew/include
)
add_definitions(-D__linux__)
link_directories(
${CMAKE_SOURCE_DIR}/external-deps/lua/lib/linux/${ARCH_DIR}
${CMAKE_SOURCE_DIR}/external-deps/zlib/lib/linux/${ARCH_DIR}
${CMAKE_SOURCE_DIR}/external-deps/libpng/lib/linux/${ARCH_DIR}
${CMAKE_SOURCE_DIR}/external-deps/bullet/lib/linux/${ARCH_DIR}
${CMAKE_SOURCE_DIR}/external-deps/oggvorbis/lib/linux/${ARCH_DIR}
${CMAKE_SOURCE_DIR}/external-deps/glew/lib/linux/${ARCH_DIR}
)
set(GAMEPLAY_LIBRARIES
gameplay
m
lua
png
z
vorbis
ogg
BulletDynamics
BulletCollision
LinearMath
openal
GLEW
GL
rt
dl
X11
)
add_definitions(-lstdc++ -lgameplay -lm -llua -lz -lpng -logg -lvorbis -lBulletCollision -lBulletDynamics -lLinearMath-lopenal -LGLEW -lGL -lrt -ldl -lX11)
add_subdirectory(sample00-mesh)
add_subdirectory(sample01-longboard)
add_subdirectory(sample02-spaceship)
add_subdirectory(sample03-character)
add_subdirectory(sample04-particles)
add_subdirectory(sample05-lua)
add_subdirectory(sample06-racer)