root/OpenSceneGraph/trunk/CMakeModules/ModuleInstall.cmake @ 9952

Revision 9342, 1.0 kB (checked in by robert, 9 years ago)

Changed the libopenscenegraph-core to be part of libopenscenegraph, and
changed libopenscenegraph-examples to be part of openscenegraph-examples

  • Property svn:eol-style set to native
Line 
1# INSTALL and SOURCE_GROUP commands for OSG/OT/Producer Modules
2
3# Required Vars:
4# ${LIB_NAME}
5# ${LIB_PUBLIC_HEADERS}
6
7SET(INSTALL_INCDIR include)
8SET(INSTALL_BINDIR bin)
9IF(WIN32)
10    SET(INSTALL_LIBDIR bin)
11    SET(INSTALL_ARCHIVEDIR lib)
12ELSE(WIN32)
13    SET(INSTALL_LIBDIR lib${LIB_POSTFIX})
14    SET(INSTALL_ARCHIVEDIR lib${LIB_POSTFIX})
15ENDIF(WIN32)
16
17SET(HEADERS_GROUP "Header Files")
18
19SOURCE_GROUP(
20    ${HEADERS_GROUP}
21    FILES ${LIB_PUBLIC_HEADERS}
22)
23
24IF(MSVC AND OSG_MSVC_VERSIONED_DLL)
25    HANDLE_MSVC_DLL()
26ENDIF(MSVC AND OSG_MSVC_VERSIONED_DLL)
27
28INSTALL(
29    TARGETS ${LIB_NAME}
30    RUNTIME DESTINATION ${INSTALL_BINDIR} COMPONENT libopenscenegraph
31    LIBRARY DESTINATION ${INSTALL_LIBDIR} COMPONENT libopenscenegraph
32    ARCHIVE DESTINATION ${INSTALL_ARCHIVEDIR} COMPONENT libopenscenegraph-dev
33)
34
35# FIXME: Do not run for OS X framework
36INSTALL(
37    FILES        ${LIB_PUBLIC_HEADERS}
38    DESTINATION ${INSTALL_INCDIR}/${LIB_NAME}
39    COMPONENT libopenscenegraph-dev
40)
Note: See TracBrowser for help on using the browser.