Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
69f4deed
Commit
69f4deed
authored
11 years ago
by
Frank Gaede
Browse files
Options
Downloads
Patches
Plain Diff
- added option INSTALL_DOC for installing doxygen doc
- install thisdd4hep.sh in ./bin
parent
03326f50
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+17
-11
17 additions, 11 deletions
CMakeLists.txt
cmake/DD4hepDoxygen.cmake
+8
-0
8 additions, 0 deletions
cmake/DD4hepDoxygen.cmake
with
25 additions
and
11 deletions
CMakeLists.txt
+
17
−
11
View file @
69f4deed
...
...
@@ -31,7 +31,7 @@ option(DD4HEP_WITH_GEANT4 "Enable the simulation part based on Geant4" OFF)
#option(DD4HEP_WITH_LCIO "Build ILD examples with LCIO - builds LCIO as external project or uses pre-installed" ON)
#---DD4hep macros -------------------------------------------------------
#---DD4hep
functions and
macros -------------------------------------------------------
include
(
DD4hep
)
include
(
DD4hepMacros
)
...
...
@@ -47,12 +47,14 @@ include(CTest)
enable_testing
()
#---Documentation-------------------------------------------------------------------
include
(
GlobalSVNRevision
)
include
(
DD4hepDoxygen
)
OPTION
(
INSTALL_DOC
"Set to OFF to skip build/install Documentation"
OFF
)
IF
(
INSTALL_DOC
)
INSTALL
(
CODE
"EXECUTE_PROCESS( COMMAND
${
CMAKE_BUILD_TOOL
}
doc)"
)
include
(
GlobalSVNRevision
)
include
(
DD4hepDoxygen
)
ENDIF
()
#---DD4hep internal functions -------------------------------------------------------
#include(DD4hep)
#---Packages------------------------------------------------------------------------
add_subdirectory
(
DDCore
)
...
...
@@ -64,9 +66,10 @@ endif()
add_subdirectory
(
UtilityApps
)
##---Examples------------------------------------------------------------------------
# FG: examples are no longer built with DD4hep - but rather will be moved to standalone packages
#-----------------------------------------------------------
##---Examples--------------------------------------------------------------
# FG: examples are no longer built with DD4hep
# now in ./examples directory as standalone packages
#--------------------------------------------------------------------------
#add_subdirectory(DDExamples/AlignDet)
#add_subdirectory(DDExamples/CLICSiD)
...
...
@@ -89,11 +92,14 @@ add_subdirectory(UtilityApps)
# add_subdirectory(DDExamples/ILDExSimu)
#endif()
#---Configuration-------------------------------------------------------------------
#~ configure_file(cmake/thisdd4hep.csh thisdd4hep.csh @ONLY)
#~ configure_file(cmake/thisdd4hep.sh thisdd4hep.sh @ONLY)
#---Configuration-------------------------------------------------------------------
configure_file
(
cmake/thisdd4hep.csh thisdd4hep.csh @ONLY
)
configure_file
(
cmake/thisdd4hep.sh thisdd4hep.sh @ONLY
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/thisdd4hep.csh
${
CMAKE_BINARY_DIR
}
/thisdd4hep.sh
DESTINATION bin
)
#-----------------------------------------------------------------------------------
display_std_variables
()
...
...
This diff is collapsed.
Click to expand it.
cmake/DD4hepDoxygen.cmake
+
8
−
0
View file @
69f4deed
#---Add a target to generate API documentation with Doxygen-------------------------
find_package
(
Doxygen
)
if
(
DOXYGEN_FOUND
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/Doxyfile.in
${
CMAKE_CURRENT_BINARY_DIR
}
/Doxyfile @ONLY
)
add_custom_target
(
doc
${
DOXYGEN_EXECUTABLE
}
${
CMAKE_CURRENT_BINARY_DIR
}
/Doxyfile
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
COMMENT
"Generating API documentation with Doxygen"
VERBATIM
)
install
(
DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
/html
DESTINATION doc
)
else
()
message
(
STATUS
"Doxygen command not found. Documentation target (doc) not available"
)
endif
()
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment