-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
33 lines (23 loc) · 749 Bytes
/
CMakeLists.txt
File metadata and controls
33 lines (23 loc) · 749 Bytes
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
CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )
PROJECT( SceneGraph )
SET( MAIN_DIR ${CMAKE_CURRENT_SOURCE_DIR} )
ADD_SUBDIRECTORY( nodes )
ADD_SUBDIRECTORY( other )
ADD_SUBDIRECTORY( properties )
ADD_SUBDIRECTORY( shapes )
GET_PROPERTY( HEADER_FILES DIRECTORY PROPERTY HEADER_FILES )
GET_PROPERTY( SOURCE_FILES DIRECTORY PROPERTY SOURCE_FILES )
FIND_PACKAGE( GLU )
FIND_PACKAGE( GLUT )
FIND_PACKAGE( OpenGL )
set( CORELIBS ${GLU_LIBRARY} ${GLUT_LIBRARY} ${OPENGL_LIBRARY} )
INCLUDE_DIRECTORIES(
${MAIN_DIR}/nodes
${MAIN_DIR}/nodes/lights
${MAIN_DIR}/other
${MAIN_DIR}/properties
${MAIN_DIR}/shapes
/usr/include/GL
)
ADD_EXECUTABLE( SceneGraph SceneGraph.cpp ${SOURCE_FILES} ${HEADER_FILES} )
TARGET_LINK_LIBRARIES( SceneGraph ${CORELIBS} )