root/OpenSceneGraph/trunk/applications/present3D/CMakeLists.txt @ 10165

Revision 10165, 1.2 kB (checked in by robert, 6 years ago)

Cleaned up set up of SDL.

Line 
1SET(TARGET_SRC
2    AnimationMaterial.cpp
3    Cluster.cpp
4    CompileSlideCallback.cpp
5    ExportHTML.cpp
6    PickEventHandler.cpp
7    PointsEventHandler.cpp
8    present3D.cpp
9    ReaderWriterP3D.cpp
10    ReadShowFile.cpp
11    ShowEventHandler.cpp
12    SlideEventHandler.cpp
13    SlideShowConstructor.cpp
14)
15
16SET(TARGET_H
17    AnimationMaterial.h
18    Cluster.h
19    CompileSlideCallback.h
20    ExportHTML.h
21    PickEventHandler.h
22    PointsEventHandler.h
23    ReadShowFile.h
24    ShowEventHandler.h
25    SlideEventHandler.h
26    SlideShowConstructor.h
27)
28
29IF (SDL_FOUND)
30
31    OPTION(BUILD_PRESENT3D_WITH_SDL "Set to ON to build Present3D with SDL for joystick support." OFF)
32
33    IF (BUILD_PRESENT3D_WITH_SDL)
34
35        SET(TARGET_EXTERNAL_LIBRARIES ${SDL_LIBRARY} )
36        INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR} )
37
38        SET(TARGET_SRC
39           ${TARGET_SRC}
40           SDLIntegration.cpp
41        )
42
43        SET(TARGET_H
44           ${TARGET_H}
45           SDLIntegration.h
46        )
47
48        ADD_DEFINITIONS(-DUSE_SDL)
49
50    ENDIF()
51
52ENDIF()
53
54SET(TARGET_ADDED_LIBRARIES osgVolume osgFX)
55
56IF   (WIN32)
57   SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARIES} ws2_32)
58ENDIF()
59
60SETUP_APPLICATION(present3D-osg)
Note: See TracBrowser for help on using the browser.