diff --git a/CMakeLists.txt b/CMakeLists.txt index 72fbd8d8269cdce5e8fb00f05d8e178cf8c07e31..62e3363416cab5794d69e25e60d70852649fa2a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -393,4 +393,18 @@ target_link_libraries( ${KOKKOS_CXX_FLAGS} ${OPENMP_LINK_FLAGS} ${PUGS_STD_LINK_FLAGS} -) + ) + +# ------------------- Installation -------------------- +# temporary version workaround +if(${CMAKE_VERSION} VERSION_LESS "3.13.0") + install(TARGETS pugs + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) +else() + install(TARGETS pugs PugsMesh PugsUtils PugsLanguage + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) +endif() diff --git a/src/language/CMakeLists.txt b/src/language/CMakeLists.txt index 2a9e7547f454f11714e3487cc01390ea77142028..2c7d8dd1fea695edc3d689ec2b6f2dbacce61e44 100644 --- a/src/language/CMakeLists.txt +++ b/src/language/CMakeLists.txt @@ -11,3 +11,12 @@ add_library( # Additional dependencies #add_dependencies(PugsMesh) + +# ------------------- Installation -------------------- +# temporary version workaround +if(${CMAKE_VERSION} VERSION_LESS "3.13.0") + install(TARGETS PugsLanguage + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) +endif() diff --git a/src/mesh/CMakeLists.txt b/src/mesh/CMakeLists.txt index 117cdac4ecdc1867521b9cfe3c094565c37852c3..ec94fd4b755cf91b30928d9894e9f476860927c6 100644 --- a/src/mesh/CMakeLists.txt +++ b/src/mesh/CMakeLists.txt @@ -15,3 +15,12 @@ include_directories(${PUGS_BINARY_DIR}/src/utils) # Additional dependencies #add_dependencies(PugsMesh) + +# ------------------- Installation -------------------- +# temporary version workaround +if(${CMAKE_VERSION} VERSION_LESS "3.13.0") + install(TARGETS PugsMesh + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) +endif() diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt index 59def1c2dd746c70799b67953ec260abc051d87a..df37bba9ebaab57c500db0fe93aab209d696535b 100644 --- a/src/utils/CMakeLists.txt +++ b/src/utils/CMakeLists.txt @@ -107,3 +107,12 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/pugs_config.hpp.in" configure_file("${CMAKE_CURRENT_SOURCE_DIR}/pugs_build_info.hpp.in" "${CMAKE_CURRENT_BINARY_DIR}/pugs_build_info.hpp" @ONLY) + +# ------------------- Installation -------------------- +# temporary version workaround +if(${CMAKE_VERSION} VERSION_LESS "3.13.0") + install(TARGETS PugsUtils + RUNTIME DESTINATION bin + LIBRARY DESTINATION lib + ARCHIVE DESTINATION lib) +endif() diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f4062e220422fb115235955b6c5d01da09f0f16d..79892a849a652a56020da0d7748e1f473101b187 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -25,6 +25,8 @@ add_executable (mpi_unit_tests target_link_libraries (unit_tests PugsUtils kokkos + ${PARMETIS_LIBRARIES} + ${MPI_CXX_LINK_FLAGS} ${MPI_CXX_LIBRARIES} Catch2 )