Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ned14/ntkernel-error-category.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2017-07-27 03:12:26 +0300
committerNiall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com>2017-07-27 03:12:26 +0300
commit8b1bc49c852feaadf99b815e63dffb8b6a7cd0c3 (patch)
tree3860c4ab30cf624444c725888d0108c544d93090
parentc2f3d3de3f333c67c1bbacde4319a63c1d193dad (diff)
parent5890532151a50ef1172843a36f620852e36d23e2 (diff)
Merge branch 'master' of github.com:ned14/ntkernel-error-category
-rw-r--r--CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bfdc9dd..bf4ab41 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,6 +27,9 @@ set_target_properties(ntkernel-error-category_dl PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
add_library(ntkernel-error-category::dl ALIAS ntkernel-error-category_dl)
+install(FILES ntkernel-error-category_dl}
+ DESTINATION "lib"
+)
add_library(ntkernel-error-category_sl STATIC "src/ntkernel_category.cpp")
target_compile_features(ntkernel-error-category_sl PUBLIC cxx_std_11)
@@ -38,6 +41,9 @@ set_target_properties(ntkernel-error-category_sl PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
)
add_library(ntkernel-error-category::sl ALIAS ntkernel-error-category_sl)
+install(FILES ntkernel-error-category_sl}
+ DESTINATION "lib"
+)
add_library(ntkernel-error-category_hl INTERFACE)
target_compile_features(ntkernel-error-category_hl INTERFACE cxx_std_11)
@@ -48,6 +54,12 @@ target_compile_definitions(ntkernel-error-category_hl INTERFACE
)
add_library(ntkernel-error-category::hl ALIAS ntkernel-error-category_hl)
+export(
+ TARGETS ntkernel-error-category_dl ntkernel-error-category_sl ntkernel-error-category_hl
+ FILE "NtKernelErrorCategoryTargets.cmake"
+ EXPORT_LINK_INTERFACE_LIBRARIES
+)
+
if(NOT PROJECT_IS_DEPENDENCY)
add_executable(test-dl "test/main.cpp")
target_link_libraries(test-dl PRIVATE ntkernel-error-category::dl)