Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
amirmasoudabdol committed Jul 30, 2021
1 parent 112b781 commit 8dec596
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 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 @@ -73,6 +77,9 @@ install(
FILES ${project_config} ${version_config}
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}")
Expand Down

0 comments on commit 8dec596

Please sign in to comment.