Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

From Jean-Sebastien Guay, "I like the recent addition that adds folde…

…rs in the solution tree to better organize the numerous examples, libraries, plugins etc.

I added two folders that were missing IMHO: packaging and documentation.
"
  • Loading branch information...
commit 782f2c56c86a5411d437c37d845594ec8cf0bb64 1 parent 0fc8544
Robert OSFIELD authored
Showing with 7 additions and 0 deletions.
  1. +3 −0  CMakeLists.txt
  2. +4 −0 CMakeModules/OsgCPack.cmake
View
3  CMakeLists.txt
@@ -916,9 +916,12 @@ IF(BUILD_DOCUMENTATION)
ADD_CUSTOM_TARGET(doc_openscenegraph ${DOXYGEN}
${PROJECT_BINARY_DIR}/doc/openscenegraph.doxyfile
)
+ SET_TARGET_PROPERTIES(doc_openscenegraph PROPERTIES FOLDER "Documentation")
+
ADD_CUSTOM_TARGET(doc_openthreads ${DOXYGEN}
${PROJECT_BINARY_DIR}/doc/openthreads.doxyfile
)
+ SET_TARGET_PROPERTIES(doc_openthreads PROPERTIES FOLDER "Documentation")
ENDIF(BUILD_DOCUMENTATION)
OPTION(BUILD_DASHBOARD_REPORTS "Set to ON to activate reporting of OpenSceneGraph builds here http://www.cdash.org/CDashPublic/index.php?project=OpenSceneGraph" OFF)
View
4 CMakeModules/OsgCPack.cmake
@@ -118,6 +118,8 @@ MACRO(GENERATE_PACKAGING_TARGET package_name)
# Create a target that creates the current package
# and rename the package to give it proper filename
ADD_CUSTOM_TARGET(${PACKAGE_TARGETNAME})
+ SET_TARGET_PROPERTIES(${PACKAGE_TARGETNAME} PROPERTIES FOLDER "Packaging")
+
ADD_CUSTOM_COMMAND(TARGET ${PACKAGE_TARGETNAME}
COMMAND ${CMAKE_CPACK_COMMAND} -C ${OSG_CPACK_CONFIGURATION} --config ${OpenSceneGraph_BINARY_DIR}/CPackConfig-${package_name}.cmake
COMMENT "Run CPack packaging for ${package_name}..."
@@ -127,6 +129,8 @@ MACRO(GENERATE_PACKAGING_TARGET package_name)
ADD_CUSTOM_COMMAND(TARGET ${PACKAGE_ALL_TARGETNAME}
COMMAND ${CMAKE_CPACK_COMMAND} -C ${OSG_CPACK_CONFIGURATION} --config ${OpenSceneGraph_BINARY_DIR}/CPackConfig-${package_name}.cmake
)
+ SET_TARGET_PROPERTIES(${PACKAGE_ALL_TARGETNAME} PROPERTIES FOLDER "Packaging")
+
ENDMACRO(GENERATE_PACKAGING_TARGET)
# Create configs and targets for a package including all components
Please sign in to comment.
Something went wrong with that request. Please try again.