2009-04-28 19:57:51 +08:00
|
|
|
SET(TARGET_SRC
|
2015-03-05 02:36:44 +08:00
|
|
|
Cluster.cpp
|
|
|
|
ExportHTML.cpp
|
|
|
|
PointsEventHandler.cpp
|
|
|
|
present3D.cpp
|
|
|
|
ReadShowFile.cpp
|
|
|
|
ShowEventHandler.cpp
|
|
|
|
SpellChecker.cpp
|
2009-04-28 19:57:51 +08:00
|
|
|
)
|
|
|
|
|
2009-04-30 04:30:21 +08:00
|
|
|
SET(TARGET_H
|
2015-03-05 02:36:44 +08:00
|
|
|
Cluster.h
|
|
|
|
ExportHTML.h
|
|
|
|
PointsEventHandler.h
|
|
|
|
ReadShowFile.h
|
|
|
|
ShowEventHandler.h
|
|
|
|
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-21 01:03:38 +08:00
|
|
|
osgdb_rgb
|
2009-06-23 00:08:12 +08:00
|
|
|
osgdb_openflight
|
|
|
|
osgdb_obj
|
2009-06-21 01:03:38 +08:00
|
|
|
)
|
2013-08-19 00:59:11 +08:00
|
|
|
|
2010-11-11 19:47:24 +08:00
|
|
|
SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES}
|
|
|
|
osgdb_deprecated_osg osgdb_deprecated_osgparticle osgdb_deprecated_osganimation
|
|
|
|
osgdb_deprecated_osgfx osgdb_deprecated_osgsim osgdb_deprecated_osgtext
|
|
|
|
osgdb_deprecated_osgviewer osgdb_deprecated_osgshadow osgdb_deprecated_osgterrain
|
|
|
|
osgdb_deprecated_osgvolume osgdb_deprecated_osgwidget
|
|
|
|
)
|
|
|
|
SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES}
|
|
|
|
osgdb_serializers_osg osgdb_serializers_osgparticle osgdb_serializers_osgtext
|
|
|
|
osgdb_serializers_osgterrain osgdb_serializers_osganimation osgdb_serializers_osgfx
|
|
|
|
osgdb_serializers_osgshadow osgdb_serializers_osgmanipulator osgdb_serializers_osgsim
|
|
|
|
osgdb_serializers_osgvolume
|
|
|
|
)
|
2010-11-09 22:57:20 +08:00
|
|
|
|
|
|
|
IF(JPEG_FOUND)
|
|
|
|
ADD_DEFINITIONS(-DUSE_JPEG)
|
|
|
|
SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES} osgdb_jpeg)
|
|
|
|
ENDIF(JPEG_FOUND)
|
|
|
|
|
|
|
|
IF(PNG_FOUND)
|
|
|
|
ADD_DEFINITIONS(-DUSE_PNG)
|
|
|
|
SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES} osgdb_png)
|
|
|
|
ENDIF(PNG_FOUND)
|
|
|
|
|
|
|
|
IF(CURL_FOUND)
|
|
|
|
ADD_DEFINITIONS(-DUSE_CURL)
|
|
|
|
SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES} osgdb_curl)
|
|
|
|
ENDIF(CURL_FOUND)
|
|
|
|
|
2011-06-17 18:35:00 +08:00
|
|
|
|
2010-11-09 22:57:20 +08:00
|
|
|
IF(FFMPEG_FOUND)
|
2011-06-17 18:35:00 +08:00
|
|
|
# ADD_DEFINITIONS(-DUSE_FFMPEG)
|
|
|
|
# SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES} osgdb_ffmpeg)
|
2010-11-09 22:57:20 +08:00
|
|
|
ENDIF(FFMPEG_FOUND)
|
|
|
|
|
|
|
|
IF(FREETYPE_FOUND)
|
|
|
|
ADD_DEFINITIONS(-DUSE_FREETYPE)
|
|
|
|
SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES} osgdb_freetype)
|
|
|
|
ENDIF(FREETYPE_FOUND)
|
|
|
|
|
2010-11-12 00:51:46 +08:00
|
|
|
IF(POPPLER_FOUND)
|
2010-11-09 22:57:20 +08:00
|
|
|
ADD_DEFINITIONS(-DUSE_POPPLER_CAIRO)
|
|
|
|
SET(TARGET_ADDED_LIBRARIES ${TARGET_ADDED_LIBRARIES} osgdb_pdf)
|
2010-11-12 00:51:46 +08:00
|
|
|
ENDIF(POPPLER_FOUND)
|
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)
|
2010-12-02 22:13:54 +08:00
|
|
|
ELSE()
|
|
|
|
CHECK_LIBRARY_EXISTS("nsl" "gethostbyname" "" LIB_NSL_HAS_GETHOSTBYNAME)
|
|
|
|
IF(LIB_NSL_HAS_GETHOSTBYNAME)
|
|
|
|
SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARIES} nsl)
|
|
|
|
ENDIF()
|
|
|
|
CHECK_LIBRARY_EXISTS("socket" "socket" "" LIB_SOCKET_HAS_SOCKET)
|
|
|
|
IF(LIB_SOCKET_HAS_SOCKET)
|
|
|
|
SET(TARGET_EXTERNAL_LIBRARIES ${TARGET_EXTERNAL_LIBRARIES} socket)
|
|
|
|
ENDIF()
|
2009-05-08 17:29:40 +08:00
|
|
|
ENDIF()
|
2009-05-01 16:10:56 +08:00
|
|
|
|
2009-06-25 00:14:53 +08:00
|
|
|
SETUP_APPLICATION(present3D)
|