root/OpenSceneGraph/trunk/src/osgWidget/CMakeLists.txt @ 9671

Revision 9671, 1.6 kB (checked in by robert, 6 years ago)

From Sherman Wilcox, added VS versioning information into libs

Line 
1IF   (DYNAMIC_OPENSCENEGRAPH)
2    ADD_DEFINITIONS(-DOSGWIDGET_LIBRARY)
3ELSE (DYNAMIC_OPENSCENEGRAPH)
4    ADD_DEFINITIONS(-DOSG_LIBRARY_STATIC)
5ENDIF(DYNAMIC_OPENSCENEGRAPH)
6
7SET(LIB_NAME osgWidget)
8SET(HEADER_PATH ${OpenSceneGraph_SOURCE_DIR}/include/${LIB_NAME})
9SET(LIB_PUBLIC_HEADERS
10    ${HEADER_PATH}/Export
11    ${HEADER_PATH}/Box
12    ${HEADER_PATH}/Browser
13    ${HEADER_PATH}/PdfReader
14    ${HEADER_PATH}/VncClient
15    ${HEADER_PATH}/Canvas
16    ${HEADER_PATH}/EventInterface
17    ${HEADER_PATH}/Frame
18    ${HEADER_PATH}/Input
19    ${HEADER_PATH}/Label
20    ${HEADER_PATH}/Lua
21    ${HEADER_PATH}/Python
22    ${HEADER_PATH}/ScriptEngine
23    ${HEADER_PATH}/StyleInterface
24    ${HEADER_PATH}/StyleManager
25    ${HEADER_PATH}/Table
26    ${HEADER_PATH}/Types
27    ${HEADER_PATH}/UIObjectParent
28    ${HEADER_PATH}/Util
29    ${HEADER_PATH}/Version
30    ${HEADER_PATH}/ViewerEventHandlers
31    ${HEADER_PATH}/Widget
32    ${HEADER_PATH}/Window
33    ${HEADER_PATH}/WindowManager
34)
35
36# FIXME: For OS X, need flag for Framework or dylib
37ADD_LIBRARY(${LIB_NAME}
38    ${OPENSCENEGRAPH_USER_DEFINED_DYNAMIC_OR_STATIC}
39    ${LIB_PUBLIC_HEADERS}
40    Box.cpp
41    Browser.cpp
42    PdfReader.cpp
43    VncClient.cpp
44    Canvas.cpp
45    CMakeLists.txt
46    Frame.cpp
47    Input.cpp
48    Label.cpp
49    Lua.cpp
50    Python.cpp
51    StyleManager.cpp
52    Table.cpp
53    Util.cpp
54    Version.cpp
55    ViewerEventHandlers.cpp
56    Widget.cpp
57    Window.cpp
58    WindowManager.cpp
59    ${OPENSCENEGRAPH_VERSIONINFO_RC}
60)
61
62
63SET(TARGET_LIBRARIES_VARS FREETYPE_LIBRARY )
64LINK_INTERNAL(${LIB_NAME}     
65    osgText
66    osgViewer
67    osgDB
68    osg
69    OpenThreads
70    osgGA
71)
72LINK_CORELIB_DEFAULT(${LIB_NAME})
73
74INCLUDE(ModuleInstall OPTIONAL)
Note: See TracBrowser for help on using the browser.