OpenSceneGraph/applications/present3D/CMakeLists.txt

72 lines
1.3 KiB
CMake
Raw Normal View History

SET(TARGET_SRC
Cluster.cpp
ExportHTML.cpp
PointsEventHandler.cpp
present3D.cpp
ReadShowFile.cpp
ShowEventHandler.cpp
)
SET(TARGET_H
Cluster.h
ExportHTML.h
PointsEventHandler.h
ReadShowFile.h
ShowEventHandler.h
)
IF (SDL_FOUND)
2009-05-08 17:29:40 +08:00
OPTION(BUILD_PRESENT3D_WITH_SDL "Set to ON to build Present3D with SDL for joystick support." OFF)
2009-05-08 17:29:40 +08:00
IF (BUILD_PRESENT3D_WITH_SDL)
2009-05-08 17:29:40 +08:00
SET(TARGET_EXTERNAL_LIBRARIES ${SDL_LIBRARY} )
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR} )
SET(TARGET_SRC
${TARGET_SRC}
SDLIntegration.cpp
)
SET(TARGET_H
${TARGET_H}
SDLIntegration.h
)
ADD_DEFINITIONS(-DUSE_SDL)
2009-05-08 17:29:40 +08:00
ENDIF()
2009-05-08 17:29:40 +08:00
ENDIF()
SET(TARGET_ADDED_LIBRARIES osgVolume osgFX osgPresentation)
IF (NOT DYNAMIC_OPENSCENEGRAPH)
SET(TARGET_ADDED_LIBRARIES
${TARGET_ADDED_LIBRARIES}
osgdb_ive
osgdb_osg
osgdb_freetype
osgdb_rgb
osgdb_jpeg
osgdb_png
osgdb_ffmpeg
osgdb_openflight
osgdb_obj
osgdb_curl
)
ENDIF()
2009-05-01 16:10:56 +08:00
IF (WIN32)
# to support cluster code
SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARIES} ws2_32)
2009-05-08 17:29:40 +08:00
ENDIF()
2009-05-01 16:10:56 +08:00
SETUP_APPLICATION(present3D-osg)