root/OpenSceneGraph/trunk/src/osgGA/CMakeLists.txt @ 12208

Revision 12208, 1.8 kB (checked in by robert, 4 years ago)

From Rafa Gaitan, "I have added the macro SETUP_LIBRARY, similar to SETUP_PLUGIN or
SETUP_EXE, in order to have a unique entry point to build the
libraries. With this changes the android integration will be less
painful (currently is a big IF(ANDROID) for each CMakeLists.txt) and
more maintainable in the future. I hope next submissions will be for
supporting android from my colleague Jorge.
"

  • Property svn:eol-style set to native
Line 
1
2IF   (DYNAMIC_OPENSCENEGRAPH)
3    ADD_DEFINITIONS(-DOSGGA_LIBRARY)
4ELSE (DYNAMIC_OPENSCENEGRAPH)
5    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
6ENDIF(DYNAMIC_OPENSCENEGRAPH)
7
8SET(LIB_NAME osgGA)
9SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
10SET(TARGET_H
11    ${HEADER_PATH}/AnimationPathManipulator
12    ${HEADER_PATH}/DriveManipulator
13    ${HEADER_PATH}/EventQueue
14    ${HEADER_PATH}/EventVisitor
15    ${HEADER_PATH}/Export
16    ${HEADER_PATH}/FirstPersonManipulator
17    ${HEADER_PATH}/FlightManipulator
18    ${HEADER_PATH}/GUIActionAdapter
19    ${HEADER_PATH}/GUIEventAdapter
20    ${HEADER_PATH}/GUIEventHandler
21    ${HEADER_PATH}/KeySwitchMatrixManipulator
22    ${HEADER_PATH}/CameraManipulator
23    ${HEADER_PATH}/MultiTouchTrackballManipulator
24    ${HEADER_PATH}/NodeTrackerManipulator
25    ${HEADER_PATH}/OrbitManipulator
26    ${HEADER_PATH}/StandardManipulator
27    ${HEADER_PATH}/SphericalManipulator
28    ${HEADER_PATH}/StateSetManipulator
29    ${HEADER_PATH}/TerrainManipulator
30    ${HEADER_PATH}/TrackballManipulator
31    ${HEADER_PATH}/UFOManipulator
32    ${HEADER_PATH}/Version
33    ${HEADER_PATH}/CameraViewSwitchManipulator
34)
35
36SET(TARGET_SRC
37    AnimationPathManipulator.cpp
38    DriveManipulator.cpp
39    EventQueue.cpp
40    EventVisitor.cpp
41    FirstPersonManipulator.cpp
42    FlightManipulator.cpp
43    GUIEventAdapter.cpp
44    GUIEventHandler.cpp
45    KeySwitchMatrixManipulator.cpp
46    CameraManipulator.cpp
47    MultiTouchTrackballManipulator.cpp
48    NodeTrackerManipulator.cpp
49    OrbitManipulator.cpp
50    StandardManipulator.cpp
51    SphericalManipulator.cpp
52    StateSetManipulator.cpp
53    TerrainManipulator.cpp
54    TrackballManipulator.cpp
55    UFOManipulator.cpp
56    Version.cpp
57    CameraViewSwitchManipulator.cpp
58    ${OPENSCENEGRAPH_VERSIONINFO_RC}
59)
60
61SET(TARGET_LIBRARIES
62    osgDB
63    osgUtil
64    osg
65    OpenThreads
66)
67
68SETUP_LIBRARY(${LIB_NAME})
69
Note: See TracBrowser for help on using the browser.