From Mattias Helsing, "I have developed the earlier cpack example a bit. Perhaps you could
consider these initial cpack support scripts. It is hidden behind a BUILD_PACKAGES option so won't affect the normal user. The submission 1) set the COMPONENT attribute on all cmake install commands. COMPONENT names are according to http://www.openscenegraph.org/projects/osg/wiki/Community/Packaging 2) provide cmake script and a template for creating CPack configuration files. It will generate target for creating packages with everything that gets "installed" (make package on unx, project PACKAGE in MSVC) plus targets for generating one package per COMPONENT (i.e. libopenscenegraph-core etc.). I have temporariliy uploaded some examples to http://www.openscenegraph.org/projects/osg/wiki/Community/People/MattiasHelsing If this submission makes it into svn we can develop it to generate rpms, installers for windows and mac (I know at least J-S don't like these but there may be others who do ;) and even DEBs (not sure if we can make them "ubuntu-ready" but they eventually may - at least we could put a deb on the website)"
This commit is contained in:
@@ -105,13 +105,14 @@ LINK_DIRECTORIES(
|
||||
|
||||
INSTALL(
|
||||
TARGETS OpenThreads
|
||||
ARCHIVE DESTINATION lib${LIB_POSTFIX}
|
||||
LIBRARY DESTINATION lib${LIB_POSTFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE DESTINATION lib${LIB_POSTFIX} COMPONENT libopenthreads
|
||||
LIBRARY DESTINATION lib${LIB_POSTFIX} COMPONENT libopenthreads
|
||||
RUNTIME DESTINATION bin COMPONENT libopenthreads
|
||||
)
|
||||
INSTALL(
|
||||
FILES ${OpenThreads_PUBLIC_HEADERS}
|
||||
DESTINATION include/OpenThreads
|
||||
COMPONENT libopenthreads-dev
|
||||
)
|
||||
|
||||
#commented out# INCLUDE(ModuleInstall OPTIONAL)
|
||||
|
||||
@@ -38,13 +38,14 @@ LINK_DIRECTORIES(
|
||||
|
||||
INSTALL(
|
||||
TARGETS OpenThreads
|
||||
ARCHIVE DESTINATION lib${LIB_POSTFIX}
|
||||
LIBRARY DESTINATION lib${LIB_POSTFIX}
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE DESTINATION lib${LIB_POSTFIX} COMPONENT libopenthreads
|
||||
LIBRARY DESTINATION lib${LIB_POSTFIX} COMPONENT libopenthreads
|
||||
RUNTIME DESTINATION bin COMPONENT libopenthreads
|
||||
)
|
||||
INSTALL(
|
||||
FILES ${OpenThreads_PUBLIC_HEADERS}
|
||||
DESTINATION include/OpenThreads
|
||||
COMPONENT libopenthreads-dev
|
||||
)
|
||||
|
||||
#commented out# INCLUDE(ModuleInstall OPTIONAL)
|
||||
|
||||
@@ -41,13 +41,14 @@ ENDIF(MSVC AND OSG_MSVC_VERSIONED_DLL)
|
||||
|
||||
INSTALL(
|
||||
TARGETS OpenThreads
|
||||
ARCHIVE DESTINATION lib
|
||||
LIBRARY DESTINATION lib
|
||||
RUNTIME DESTINATION bin
|
||||
ARCHIVE DESTINATION lib COMPONENT libopenthreads-dev
|
||||
LIBRARY DESTINATION lib COMPONENT libopenthreads
|
||||
RUNTIME DESTINATION bin COMPONENT libopenthreads
|
||||
)
|
||||
INSTALL(
|
||||
FILES ${OpenThreads_PUBLIC_HEADERS}
|
||||
DESTINATION include/OpenThreads
|
||||
COMPONENT libopenthreads-dev
|
||||
)
|
||||
|
||||
#commented out# INCLUDE(ModuleInstall OPTIONAL)
|
||||
|
||||
@@ -23,4 +23,4 @@ INCLUDE_DIRECTORIES(${INVENTOR_INCLUDE_DIR})
|
||||
|
||||
SET(TARGET_LIBRARIES_VARS INVENTOR_LIBRARY)
|
||||
|
||||
SETUP_PLUGIN(iv)
|
||||
SETUP_PLUGIN(iv iv)
|
||||
|
||||
@@ -59,4 +59,4 @@ ENDIF(COLLADA_USE_STATIC)
|
||||
SET(TARGET_ADDED_LIBRARIES osgSim )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(dae)
|
||||
SETUP_PLUGIN(dae dae)
|
||||
|
||||
@@ -13,4 +13,4 @@ SET(TARGET_LIBRARIES_VARS GDAL_LIBRARY )
|
||||
SET(TARGET_ADDED_LIBRARIES osgTerrain )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(gdal)
|
||||
SETUP_PLUGIN(gdal gdal)
|
||||
|
||||
@@ -62,5 +62,5 @@ ENDIF(WIN32 OR APPLE)
|
||||
SET(TARGET_ADDED_LIBRARIES osgWidget osgViewer)
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(gecko)
|
||||
SETUP_PLUGIN(gecko gecko)
|
||||
|
||||
|
||||
@@ -7,4 +7,4 @@ SET(TARGET_EXTERNAL_LIBRARIES ${CAIRO_LIBRARIES} ${POPPLER_LIBRARIES} )
|
||||
SET(TARGET_ADDED_LIBRARIES osgWidget osgVolume)
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(pdf)
|
||||
SETUP_PLUGIN(pdf pdf)
|
||||
|
||||
@@ -8,4 +8,4 @@ LINK_LIBRARIES(${RSVG_LIBRARIES} ${CAIRO_LIBRARIES})
|
||||
|
||||
SET(TARGET_SRC ReaderWriterSVG.cpp )
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(svg)
|
||||
SETUP_PLUGIN(svg svg)
|
||||
|
||||
@@ -7,4 +7,4 @@ SET(TARGET_EXTERNAL_LIBRARIES ${LIBVNCCLIENT_LIBRARY} ${ZLIB_LIBRARY} ${JPEG_LIB
|
||||
SET(TARGET_ADDED_LIBRARIES osgWidget )
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(vnc)
|
||||
SETUP_PLUGIN(vnc vnc)
|
||||
|
||||
@@ -22,4 +22,4 @@ SET(TARGET_H
|
||||
)
|
||||
|
||||
#### end var setup ###
|
||||
SETUP_PLUGIN(vrml)
|
||||
SETUP_PLUGIN(vrml vrml)
|
||||
|
||||
@@ -160,5 +160,6 @@ FOREACH( INCLUDEFILE ${LIB_PUBLIC_HEADERS} )
|
||||
INSTALL(
|
||||
FILES ${INCLUDEFILE}
|
||||
DESTINATION ${INSTALL_INCDIR}/${LIB_NAME}/${REL_INCLUDE_PATH}
|
||||
COMPONENT libopenscenegraph-core-dev
|
||||
)
|
||||
ENDFOREACH( INCLUDEFILE)
|
||||
|
||||
Reference in New Issue
Block a user