From 55b0e4e4adea3cc59ecbd3399232e601e7c8e681 Mon Sep 17 00:00:00 2001 From: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Date: Mon, 1 Mar 2021 18:34:23 +0100 Subject: [PATCH] add install target --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83ca556..9083d03 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,9 @@ target_compile_options(vk-bootstrap-compiler-warnings /W4> ) +target_include_directories(vk-bootstrap PUBLIC + $ + $) target_include_directories(vk-bootstrap PUBLIC src) target_include_directories(vk-bootstrap PUBLIC ${Vulkan_INCLUDE_DIR}) target_link_libraries(vk-bootstrap @@ -37,6 +40,13 @@ target_link_libraries(vk-bootstrap ${CMAKE_DL_LIBS}) target_compile_features(vk-bootstrap PUBLIC cxx_std_14) +include(GNUInstallDirs) +install(FILES src/VkBootstrap.h DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) +install(TARGETS vk-bootstrap + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) + option(VK_BOOTSTRAP_TEST "Test Vk-Bootstrap with glfw and Catch2" OFF) if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME OR VK_BOOTSTRAP_TEST)