Skip to content

Commit

Permalink
cmake: export target with namespace (#60)
Browse files Browse the repository at this point in the history
* cmake: export target with namespace

* bump patch version to 0.4.3
  • Loading branch information
scpeters authored Jan 8, 2019
1 parent 99b8780 commit f0b423c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ project(console_bridge)

set (CONSOLE_BRIDGE_MAJOR_VERSION 0)
set (CONSOLE_BRIDGE_MINOR_VERSION 4)
set (CONSOLE_BRIDGE_PATCH_VERSION 2)
set (CONSOLE_BRIDGE_PATCH_VERSION 3)

set (CONSOLE_BRIDGE_VERSION ${CONSOLE_BRIDGE_MAJOR_VERSION}.${CONSOLE_BRIDGE_MINOR_VERSION}.${CONSOLE_BRIDGE_PATCH_VERSION})
message (STATUS "${PROJECT_NAME} version ${CONSOLE_BRIDGE_VERSION}")
Expand Down Expand Up @@ -97,6 +97,7 @@ write_basic_config_version_file(

install(EXPORT ${PROJECT_NAME}-targets
FILE ${PROJECT_NAME}-targets.cmake
NAMESPACE ${PROJECT_NAME}::
DESTINATION ${CMAKE_CONFIG_INSTALL_DIR})
install(FILES
"${CMAKE_BINARY_DIR}/${cmake_conf_file}"
Expand Down
2 changes: 1 addition & 1 deletion console_bridge-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ set(@PKG_NAME@_CONFIG_INCLUDED TRUE)
set(@PKG_NAME@_INCLUDE_DIRS "@PACKAGE_CMAKE_INSTALL_FULL_INCLUDEDIR@")

include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
set(@PKG_NAME@_LIBRARIES @PKG_NAME@)
set(@PKG_NAME@_LIBRARIES @PKG_NAME@::@PKG_NAME@)

0 comments on commit f0b423c

Please sign in to comment.