Skip to content

Commit

Permalink
Merge pull request agauniyal#128 from amirmasoudabdol/improved-the-cm…
Browse files Browse the repository at this point in the history
…ake-file

Minor fix for CMake Installer
  • Loading branch information
agauniyal authored Jul 31, 2021
2 parents 09f2f05 + 41339ba commit a083cae
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ configure_package_config_file(

set(INSTALL_TARGETS rang)

# Install the library and headers.
install(TARGETS ${INSTALL_TARGETS} EXPORT ${targets_export_name}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})

# Use a namespace because CMake provides better diagnostics for namespaced
# imported targets.
export(TARGETS ${INSTALL_TARGETS} NAMESPACE rang::
Expand All @@ -74,7 +78,9 @@ install(
DESTINATION ${RANG_CMAKE_DIR}
)

install(EXPORT ${targets_export_name}
DESTINATION ${RANG_CMAKE_DIR}
NAMESPACE rang::)

install(FILES ${RANG_HEADERS} DESTINATION "${RANG_INC_DIR}")
install(FILES "${pkgconfig}" DESTINATION "${RANG_PKGCONFIG_DIR}")


0 comments on commit a083cae

Please sign in to comment.