Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
CoMISo
Commits
193c69a1
Commit
193c69a1
authored
Dec 18, 2015
by
Jan Möbius
Browse files
Only create install target in standalone mode
parent
5f5a4d73
Pipeline
#500
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
193c69a1
cmake_minimum_required
(
VERSION 2.6
)
project
(
CoMISo
)
#Only set project name if CoMISo is built as stand-alone library
if
(
"
${
PROJECT_NAME
}
"
STREQUAL
""
)
project
(
CoMISo
)
endif
()
# add our macro directory to cmake search path
set
(
CMAKE_MODULE_PATH
${
CMAKE_MODULE_PATH
}
${
CMAKE_SOURCE_DIR
}
/cmake
)
...
...
@@ -504,22 +509,27 @@ if( EXISTS "${CMAKE_SOURCE_DIR}/Examples/small_finite_element/CMakeLists.txt" )
add_subdirectory
(
Examples/small_finite_element
)
endif
()
# Install Header Files
install
(
DIRECTORY .
DESTINATION include/CoMISo
FILES_MATCHING
PATTERN
"*.hh"
PATTERN
"*T.cc"
PATTERN
"CVS"
EXCLUDE
PATTERN
".svn"
EXCLUDE
PATTERN
".git"
EXCLUDE
PATTERN
"Examples"
EXCLUDE
PATTERN
"CI"
EXCLUDE
PATTERN
"tmp"
EXCLUDE
PATTERN
"Templates"
EXCLUDE
PATTERN
"Debian*"
EXCLUDE
)
# Install Config File
install
(
FILES
${
CMAKE_BINARY_DIR
}
/CoMISo/Config/config.hh
DESTINATION include/CoMISo/Config
)
# Only create install target, when we are building CoMISo standalone
if
(
${
PROJECT_NAME
}
MATCHES
"CoMISo"
)
# Install Header Files
install
(
DIRECTORY .
DESTINATION include/CoMISo
FILES_MATCHING
PATTERN
"*.hh"
PATTERN
"*T.cc"
PATTERN
"CVS"
EXCLUDE
PATTERN
".svn"
EXCLUDE
PATTERN
".git"
EXCLUDE
PATTERN
"Examples"
EXCLUDE
PATTERN
"CI"
EXCLUDE
PATTERN
"tmp"
EXCLUDE
PATTERN
"Templates"
EXCLUDE
PATTERN
"Debian*"
EXCLUDE
)
# Install Config File
install
(
FILES
${
CMAKE_BINARY_DIR
}
/CoMISo/Config/config.hh
DESTINATION include/CoMISo/Config
)
endif
()
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment