Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
d4705012
Commit
d4705012
authored
11 years ago
by
Eric Cano
Browse files
Options
Downloads
Patches
Plain Diff
Generalized the packaging mode.
parent
ad5417ff
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+22
-17
22 additions, 17 deletions
CMakeLists.txt
with
22 additions
and
17 deletions
CMakeLists.txt
+
22
−
17
View file @
d4705012
...
...
@@ -48,14 +48,14 @@ set (CMAKE_CXX_FLAGS "-g3 -Wall -Werror -pedantic")
###########################################################################
# dependancies
###########################################################################
IF
(
DEFINED
SKIP_GTest
)
MESSAGE
(
"
Skipping GTest. This is fine for a packaging.
"
)
IF
(
DEFINED
PackageOnly
)
MESSAGE
(
"
Running CMake in package-only mode
"
)
SET
(
GTEST_LIBRARY
""
)
SET
(
GTEST_INCLUDE_DIR
""
)
SET
(
GTEST_MAIN_LIBRARY
""
)
ELSE
(
DEFINED
SKIP_GTest
)
ELSE
(
DEFINED
PackageOnly
)
find_package
(
GTest REQUIRED
)
ENDIF
(
DEFINED
SKIP_GTest
)
ENDIF
(
DEFINED
PackageOnly
)
enable_testing
()
set
(
CTEST_OUTPUT_ON_FAILURE 1
)
...
...
@@ -83,19 +83,24 @@ add_subdirectory(test)
# documentation
###########################################################################
# add a target to generate API documentation with Doxygen
find_package
(
Doxygen
)
if
(
DOXYGEN_FOUND
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/Doxyfile.in
${
CMAKE_CURRENT_BINARY_DIR
}
/Doxyfile @ONLY
)
add_custom_target
(
doxygen
${
DOXYGEN_EXECUTABLE
}
${
CMAKE_CURRENT_BINARY_DIR
}
/Doxyfile
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
COMMENT
"Generating API documentation with Doxygen"
VERBATIM
)
endif
(
DOXYGEN_FOUND
)
INCLUDE
(
cmake/UseLATEX.cmake
)
add_subdirectory
(
Documentation
)
IF
(
NOT DEFINED PackageOnly
)
find_package
(
Doxygen
)
if
(
DOXYGEN_FOUND
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/Doxyfile.in
${
CMAKE_CURRENT_BINARY_DIR
}
/Doxyfile @ONLY
)
add_custom_target
(
doxygen
${
DOXYGEN_EXECUTABLE
}
${
CMAKE_CURRENT_BINARY_DIR
}
/Doxyfile
WORKING_DIRECTORY
${
CMAKE_CURRENT_BINARY_DIR
}
COMMENT
"Generating API documentation with Doxygen"
VERBATIM
)
endif
(
DOXYGEN_FOUND
)
INCLUDE
(
cmake/UseLATEX.cmake
)
add_subdirectory
(
Documentation
)
ENDIF
(
NOT DEFINED PackageOnly
)
###########################################################################
# Packaging step (replacing the maketar)
...
...
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