-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
54 lines (46 loc) · 910 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
53
project(roketz)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -Werror -Wsign-compare")
find_package(OpenGL)
find_package(SDL REQUIRED)
find_package(SDL_mixer REQUIRED)
find_package(SDL_image REQUIRED)
message(GL = ${OPENGL_INCLUDE_DIR})
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${SDL_INCLUDE_DIR}
${SDLMIXER_INCLUDE_DIR}
# ${OPENGL_INCLUDE_DIR}/Headers/
"/Developer/GPU\ Computing/shared/inc/"
/opt/local/include/
)
link_directories("/opt/local/lib")
add_executable(roketz
aabsp.cc
billboard.cc
binfile.cc
camera.cc
frustum.cc
geometry.cc
input.cc
loadd3l.cc
loadobj.cc
main.cc
object.cc
particle.cc
printer.cc
rocket.cc
room.cc
texture.cc
world.cc
)
target_link_libraries(roketz
${SDL_LIBRARY}
${SDLMIXER_LIBRARY}
${SDLIMAGE_LIBRARY}
${OPENGL_LIBRARIES}
plibsg
plibul
jpeg
png
)