IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 3c829265 authored by ralfulrich's avatar ralfulrich
Browse files

changed install paths

parent 15ca93e3
No related branches found
No related tags found
No related merge requests found
Pipeline #4276 canceled
......@@ -21,30 +21,30 @@ target_include_directories (
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/externals/compress_stream/include>
$<INSTALL_INTERFACE:include/modules/corsika_data>
$<INSTALL_INTERFACE:include/corsika_modules/data>
)
if (TARGET CORSIKA8)
install (
TARGETS CorsikaData
EXPORT CORSIKA8PublicTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include/modules/corsika_data
LIBRARY DESTINATION lib/corsika
ARCHIVE DESTINATION lib/corsika
PUBLIC_HEADER DESTINATION include/corsika_modules/data
)
else (TARGET CORSIKA8)
install (
TARGETS CORSIKA8PublicTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
PUBLIC_HEADER DESTINATION include/modules/corsika_data
LIBRARY DESTINATION lib/corsika
ARCHIVE DESTINATION lib/corsika
PUBLIC_HEADER DESTINATION include/corsika_modules/data
)
endif (TARGET CORSIKA8)
# add unit test, if run inside CORSIKA
if (COMMAND CORSIKA_ADD_TEST)
if (CORSIKA_DATA_WITH_TEST)
message ("CorsikaData, using CORSIKA_ADD_TEST")
message (STATUS "CorsikaData uses CORSIKA_ADD_TEST")
CORSIKA_ADD_TEST (testData SOURCES source/testData.cc)
target_compile_definitions (
testData
......@@ -54,7 +54,7 @@ if (COMMAND CORSIKA_ADD_TEST)
)
endif (CORSIKA_DATA_WITH_TEST)
else (COMMAND CORSIKA_ADD_TEST)
message ("CorsikaData did not find CORSIKA_ADD_TEST")
message (STATUS "CorsikaData did not detector CORSIKA8")
add_executable (testData source/testData.cc)
target_link_libraries (testData CorsikaData CONAN_PKG::catch2)
target_compile_options (testData PRIVATE -g) # do not skip asserts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment