-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (28 loc) · 1.1 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
module_version(2.3)
# Open Scene Graph configuration, libraries and applications
include(external/UseOpenSceneGraph.cmake)
include_directories(./)
include_directories(${OSG_INCLUDES})
#add osgBullet into include
include(external/UseOsgBullet.cmake)
include_directories(${OSGBULLET_INCLUDES})
add_subdirectory(src)
add_subdirectory(apps/osgviewer)
set(BULLET_BUILD_EXAMPLES false CACHE BOOL "set to true to build some omegalib/Bullet examples")
if(BULLET_BUILD_EXAMPLES)
add_subdirectory(apps/osgbCollision)
add_subdirectory(apps/osgbBasicDemo)
add_subdirectory(apps/osgbSphere)
add_subdirectory(apps/osgbDice)
add_subdirectory(apps/osgbSlider)
endif()
#if(OMEGA_USE_PORTHOLE)
# add_subdirectory(${CMAKE_SOURCE_DIR}/examples/portholeCustomDraw ${CMAKE_BINARY_DIR}/examples/portholeCustomDraw)
#endif()
###############################################################################
# Install commands
# osgworks
if(${OMEGA_INSTALL_DEVLIBS})
install(DIRECTORY ${CMAKE_BINARY_DIR}/src/osgWorks-prefix/src/osgWorks-build/lib/ DESTINATION omegalib/lib)
endif()
set_target_properties(omegaOsg PROPERTIES FOLDER modules)