root/OpenSceneGraph/trunk/src/osgManipulator/CMakeLists.txt @ 9949

Revision 9949, 1.8 kB (checked in by robert, 6 years ago)

From Philip Lowman, "Here's the promised cleanup of the OSG's CMakeLists.txt files for the src/ folder. I'll submit the others separately.

Also, there was also a small bug in osgDB's CMakeLists.txt that was causing an error when I tested with CMake 2.4.4.

IF(${OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX} STREQUAL "quicktime")
was changed to
IF(OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX STREQUAL "quicktime")
"

  • Property svn:eol-style set to native
Line 
1
2IF(DYNAMIC_OPENSCENEGRAPH)
3    ADD_DEFINITIONS(-DOSGMANIPULATOR_LIBRARY)
4ELSE()
5    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
6ENDIF()
7
8SET(LIB_NAME osgManipulator)
9SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
10SET(LIB_PUBLIC_HEADERS
11    ${HEADER_PATH}/AntiSquish
12    ${HEADER_PATH}/Command
13    ${HEADER_PATH}/CommandManager
14    ${HEADER_PATH}/Constraint
15    ${HEADER_PATH}/Dragger
16    ${HEADER_PATH}/Export
17    ${HEADER_PATH}/Projector
18    ${HEADER_PATH}/RotateCylinderDragger
19    ${HEADER_PATH}/RotateSphereDragger
20    ${HEADER_PATH}/Scale1DDragger
21    ${HEADER_PATH}/Scale2DDragger
22    ${HEADER_PATH}/ScaleAxisDragger
23    ${HEADER_PATH}/Selection
24    ${HEADER_PATH}/TabBoxDragger
25    ${HEADER_PATH}/TabPlaneDragger
26    ${HEADER_PATH}/TabPlaneTrackballDragger
27    ${HEADER_PATH}/TrackballDragger
28    ${HEADER_PATH}/Translate1DDragger
29    ${HEADER_PATH}/Translate2DDragger
30    ${HEADER_PATH}/TranslateAxisDragger
31    ${HEADER_PATH}/TranslatePlaneDragger
32    ${HEADER_PATH}/Version
33)
34
35# FIXME: For OS X, need flag for Framework or dylib
36ADD_LIBRARY(${LIB_NAME}
37    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
38    ${LIB_PUBLIC_HEADERS}
39    AntiSquish.cpp
40    Command.cpp
41    CommandManager.cpp
42    Constraint.cpp
43    Dragger.cpp
44    Projector.cpp
45    RotateCylinderDragger.cpp
46    RotateSphereDragger.cpp
47    Scale1DDragger.cpp
48    Scale2DDragger.cpp
49    ScaleAxisDragger.cpp
50    Selection.cpp
51    TabBoxDragger.cpp
52    TabPlaneDragger.cpp
53    TabPlaneTrackballDragger.cpp
54    TrackballDragger.cpp
55    Translate1DDragger.cpp
56    Translate2DDragger.cpp
57    TranslateAxisDragger.cpp
58    TranslatePlaneDragger.cpp
59    Version.cpp
60    ${OPENSCENEGRAPH_VERSIONINFO_RC}
61)
62
63LINK_INTERNAL(${LIB_NAME}     
64    osgGA
65    osgUtil
66    osg
67    OpenThreads
68)
69LINK_CORELIB_DEFAULT(${LIB_NAME})
70
71INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.