diff options
author | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2017-07-21 02:23:31 +0300 |
---|---|---|
committer | Niall Douglas (s [underscore] sourceforge {at} nedprod [dot] com) <spamtrap@nedprod.com> | 2017-07-21 02:23:31 +0300 |
commit | 5890532151a50ef1172843a36f620852e36d23e2 (patch) | |
tree | 0ceffdbefebcaf8bdeeb665922d9f3b919c884e2 | |
parent | f0df7ae4d73d098b8e0bf9cf9ec044bfe545b347 (diff) |
Added missing cmake export
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a13ed61..71a7509 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,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_include_directories(ntkernel-error-category_sl INTERFACE "include") @@ -36,6 +39,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_include_directories(ntkernel-error-category_hl INTERFACE "include") @@ -45,6 +51,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) |