2009-04-28 19:57:51 +08:00
|
|
|
SET(TARGET_SRC
|
|
|
|
Cluster.cpp
|
|
|
|
ExportHTML.cpp
|
|
|
|
PointsEventHandler.cpp
|
|
|
|
present3D.cpp
|
|
|
|
ReadShowFile.cpp
|
|
|
|
ShowEventHandler.cpp
|
2010-04-30 23:51:38 +08:00
|
|
|
SpellChecker.cpp
|
2009-04-28 19:57:51 +08:00
|
|
|
)
|
|
|
|
|
2009-04-30 04:30:21 +08:00
|
|
|
SET(TARGET_H
|
|
|
|
Cluster.h
|
|
|
|
ExportHTML.h
|
|
|
|
PointsEventHandler.h
|
|
|
|
ReadShowFile.h
|
|
|
|
ShowEventHandler.h
|
2010-04-30 23:51:38 +08:00
|
|
|
SpellChecker.h
|
2009-04-30 04:30:21 +08:00
|
|
|
)
|
|
|
|
|
2009-04-28 19:57:51 +08:00
|
|
|
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-04-28 19:57:51 +08:00
|
|
|
|
2009-05-08 17:29:40 +08:00
|
|
|
IF (BUILD_PRESENT3D_WITH_SDL)
|
2009-04-28 19:57:51 +08:00
|
|
|
|
2009-05-08 17:29:40 +08:00
|
|
|
SET(TARGET_EXTERNAL_LIBRARIES ${SDL_LIBRARY} )
|
|
|
|
INCLUDE_DIRECTORIES(${SDL_INCLUDE_DIR} )
|
2009-04-28 19:57:51 +08:00
|
|
|
|
|
|
|
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-04-28 19:57:51 +08:00
|
|
|
|
2009-05-08 17:29:40 +08:00
|
|
|
ENDIF()
|
2009-04-28 19:57:51 +08:00
|
|
|
|
2009-06-25 00:03:49 +08:00
|
|
|
SET(TARGET_ADDED_LIBRARIES osgVolume osgFX osgPresentation)
|
2009-04-28 19:57:51 +08:00
|
|
|
|
2009-06-21 01:03:38 +08:00
|
|
|
IF (NOT DYNAMIC_OPENSCENEGRAPH)
|
|
|
|
SET(TARGET_ADDED_LIBRARIES
|
|
|
|
${TARGET_ADDED_LIBRARIES}
|
|
|
|
osgdb_ive
|
|
|
|
osgdb_osg
|
2009-06-25 01:34:30 +08:00
|
|
|
osgdb_p3d
|
2009-06-23 00:08:12 +08:00
|
|
|
|
|
|
|
osgdb_freetype
|
2009-06-25 01:34:30 +08:00
|
|
|
osgdb_pdf
|
2009-06-21 01:03:38 +08:00
|
|
|
osgdb_rgb
|
|
|
|
osgdb_jpeg
|
|
|
|
osgdb_png
|
2009-06-23 00:08:12 +08:00
|
|
|
|
2009-06-21 01:03:38 +08:00
|
|
|
osgdb_ffmpeg
|
2009-06-23 00:08:12 +08:00
|
|
|
|
|
|
|
osgdb_openflight
|
|
|
|
osgdb_obj
|
|
|
|
|
|
|
|
osgdb_curl
|
2009-06-21 01:03:38 +08:00
|
|
|
)
|
|
|
|
ENDIF()
|
|
|
|
|
2009-05-01 16:10:56 +08:00
|
|
|
IF (WIN32)
|
2009-06-21 01:03:38 +08:00
|
|
|
# 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
|
|
|
|
2009-06-21 01:03:38 +08:00
|
|
|
|
2009-06-25 00:14:53 +08:00
|
|
|
SETUP_APPLICATION(present3D)
|