diff options
author | Trond H Emaus <trondhe@gmail.com> | 2019-06-24 01:57:25 +0300 |
---|---|---|
committer | Viktor Kirilov <vkirilov@nuodb.com> | 2019-07-06 18:54:43 +0300 |
commit | de04576ecf0be3e23d25104279887bc43c8d4d78 (patch) | |
tree | f6d0db784ec1c7b678724b84514ac162fc23900c /CMakeLists.txt | |
parent | 2ce8c59c108b58c4f5c723c017eaad7b8fa80a4a (diff) |
add alias target for doctest for use in build tree (#247)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 66b387b5..0ca52aab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ option(DOCTEST_WITH_MAIN_IN_STATIC_LIB "Build a static lib (cmake target) with option(DOCTEST_NO_INSTALL "Skip the installation process" OFF) add_library(${PROJECT_NAME} INTERFACE) +add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) set(doctest_parts_folder "${CMAKE_CURRENT_SOURCE_DIR}/doctest/parts") |