Skip to content

Commit

Permalink
Fix packaging script (#100)
Browse files Browse the repository at this point in the history
* update packaging script for tuvx

* update packaging script
  • Loading branch information
mattldawson authored May 3, 2024
1 parent 625ee98 commit 64db21d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
2 changes: 0 additions & 2 deletions fortran/packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ include(CMakePackageConfigHelpers)
install(
TARGETS
musica-fortran
tuvx
yaml-cpp
EXPORT
musica_fortran_Exports
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
Expand Down
17 changes: 16 additions & 1 deletion src/packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -35,7 +51,6 @@ if (MUSICA_ENABLE_MICM)
)
endif()


# install the cmake config files
set(cmake_config_install_location "${CMAKE_INSTALL_LIBDIR}/cmake/musica")

Expand Down

0 comments on commit 64db21d

Please sign in to comment.