diff --git a/fortran/packaging/CMakeLists.txt b/fortran/packaging/CMakeLists.txt index 779b9dea..aa8f1eb1 100644 --- a/fortran/packaging/CMakeLists.txt +++ b/fortran/packaging/CMakeLists.txt @@ -3,8 +3,6 @@ include(CMakePackageConfigHelpers) install( TARGETS musica-fortran - tuvx - yaml-cpp EXPORT musica_fortran_Exports LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} diff --git a/src/packaging/CMakeLists.txt b/src/packaging/CMakeLists.txt index 60f73b39..dc18ab0d 100644 --- a/src/packaging/CMakeLists.txt +++ b/src/packaging/CMakeLists.txt @@ -26,6 +26,22 @@ install( ${MUSICA_INSTALL_INCLUDE_DIR}/musica/fortran ) +if (MUSICA_ENABLE_TUVX) + install( + TARGETS + tuvx + yaml-cpp + EXPORT + musica_Exports + ) + install( + FILES + ${MUSICA_FORTRAN_SRC_DIR}/tuvx.F90 + DESTINATION + ${MUSICA_INSTALL_INCLUDE_DIR}/musica/fortran + ) +endif() + if (MUSICA_ENABLE_MICM) install( DIRECTORY @@ -35,7 +51,6 @@ if (MUSICA_ENABLE_MICM) ) endif() - # install the cmake config files set(cmake_config_install_location "${CMAKE_INSTALL_LIBDIR}/cmake/musica")