-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
44 lines (41 loc) · 941 Bytes
/
CMakeLists.txt
File metadata and controls
44 lines (41 loc) · 941 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# List of headers
list(APPEND headers_list
Cavity.hpp
CavityData.hpp
Element.hpp
GePolCavity.hpp
ICavity.hpp
RestartCavity.hpp
TsLessCavity.hpp
)
# List of sources
list(APPEND sources_list
Element.cpp
GePolCavity.cpp
ICavity.cpp
RestartCavity.cpp
TsLessCavity.cpp
)
add_library(cavity OBJECT ${sources_list} ${headers_list})
set_target_properties(cavity
PROPERTIES
POSITION_INDEPENDENT_CODE 1
CXX_VISIBILITY_PRESET hidden
VISIBILITY_INLINES_HIDDEN 1
)
target_compile_definitions(cavity
PUBLIC
PCMSolver_EXPORTS
)
if(BUILD_CUSTOM_BOOST)
add_dependencies(cavity custom_boost)
endif()
add_dependencies(cavity generate-config-hpp)
target_compile_options(cavity
PRIVATE
"$<$<CONFIG:DEBUG>:${EXDIAG_CXX_FLAGS}>"
)
# Sets install directory for all the headers in the list
foreach(_header ${headers_list})
install(FILES ${_header} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}/cavity)
endforeach()