Skip to content

Commit

Permalink
Merge pull request #59 from andrsd/cmake-config
Browse files Browse the repository at this point in the history
Changing file names of the cmake files used by find_package
  • Loading branch information
andrsd authored Jun 26, 2024
2 parents 2874c46 + 068e41f commit d389ffc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set(EXODUSIICPP_VERSION @PROJECT_VERSION@)

@PACKAGE_INIT@

include("${CMAKE_CURRENT_LIST_DIR}/exodusIIcppTargets.cmake")
include("${CMAKE_CURRENT_LIST_DIR}/exodusIIcpp-targets.cmake")

check_required_components(exodusIIcpp)

Expand Down
12 changes: 6 additions & 6 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ target_link_libraries(
# Install

configure_package_config_file(
${PROJECT_SOURCE_DIR}/cmake/exodusIIcppConfig.cmake.in
exodusIIcppConfig.cmake
${PROJECT_SOURCE_DIR}/cmake/exodusIIcpp-config.cmake.in
exodusIIcpp-config.cmake
INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/exodusIIcpp
NO_SET_AND_CHECK_MACRO
)
write_basic_package_version_file(exodusIIcppConfigVersion.cmake
write_basic_package_version_file(exodusIIcpp-config-version.cmake
VERSION ${PROJECT_VERSION}
COMPATIBILITY AnyNewerVersion
)
Expand All @@ -71,14 +71,14 @@ install(

install(
EXPORT exodusIIcppTargets
FILE exodusIIcppTargets.cmake
FILE exodusIIcpp-targets.cmake
NAMESPACE exodusIIcpp::
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/exodusIIcpp
)

install(
FILES
"${CMAKE_CURRENT_BINARY_DIR}/exodusIIcppConfig.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/exodusIIcppConfigVersion.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/exodusIIcpp-config.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/exodusIIcpp-config-version.cmake"
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/exodusIIcpp
)

0 comments on commit d389ffc

Please sign in to comment.