Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
cmake: export build directory targets and add to CMake's
package registry so other projects can use this one without
requiring to install the package.
  • Loading branch information
Adrian Antonana committed Apr 26, 2017
commit 70fd7c3ff8daf99b663d620a0342f600af5ecf7d
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ write_basic_package_version_file("${PROJECT_BINARY_DIR}/docopt-config-version.cm
install(FILES docopt-config.cmake ${PROJECT_BINARY_DIR}/docopt-config-version.cmake DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/docopt")
install(EXPORT ${export_name} DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/docopt")

# build directory project config
export(EXPORT ${export_name}
FILE docopt-config.cmake
)

# add packe to CMake registry
export(PACKAGE docopt)

#============================================================================
# CPack
#============================================================================
Expand Down