OpenSceneGraph/applications/present3D/CMakeLists.txt

60 lines
1.2 KiB
CMake
Raw Normal View History

INCLUDE_DIRECTORIES(${LIBXML2_INCLUDE_DIR} )
SET(TARGET_EXTERNAL_LIBRARIES ${LIBXML2_LIBRARIES})
SET(TARGET_SRC
AnimationMaterial.h
Cluster.h
CompileSlideCallback.h
ExportHTML.h
PickEventHandler.h
PointsEventHandler.h
ReadShowFile.h
ShowEventHandler.h
SlideEventHandler.h
SlideShowConstructor.h
)
SET(TARGET_H
AnimationMaterial.cpp
Cluster.cpp
CompileSlideCallback.cpp
ExportHTML.cpp
PickEventHandler.cpp
PointsEventHandler.cpp
present3D.cpp
ReaderWriterXML.cpp
ReadShowFile.cpp
ShowEventHandler.cpp
SlideEventHandler.cpp
SlideShowConstructor.cpp
)
IF (SDL_FOUND)
OPTION(BUILD_WITH_SDL "Set to ON to build with SDL for joystick support." OFF)
IF (BUILD_WITH_SDL)
SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES} ${SDL_LIBRARY})
SET(EXTERNAL_INCLUDE_DIRS ${EXTERNAL_INCLUDE_DIRS} ${SDL_INCLUDE_DIR})
SET(TARGET_SRC
${TARGET_SRC}
SDLIntegration.cpp
)
SET(TARGET_H
${TARGET_H}
SDLIntegration.h
)
ADD_DEFINITIONS(-DUSE_SDL)
ENDIF(BUILD_WITH_SDL)
ENDIF(SDL_FOUND)
SET(TARGET_ADDED_LIBRARIES osgVolume osgFX)
SETUP_APPLICATION(present3D)