From 8fe642b86c85ec45f27424108d7a5d6fae25fe25 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 14 Oct 2020 03:10:23 +0300 Subject: add error-handling functions They are almost exact copies from my pdb-repo project at https://github.com/egor-tensin/pdb-repo/tree/fa2afec5e7af45e7f1440b2d32c2a4e63dad6a62 I'm currently thinking about renaming it to winapi-debug BTW. --- CMakeLists.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ffa5a5..d1f8a37 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,12 +4,18 @@ project(winapi_common CXX) include(cmake/common.cmake) -find_package(Boost REQUIRED) +file(GLOB_RECURSE winapi_common_include "include/*.hpp") +file(GLOB winapi_common_src "src/*.cpp") +add_library(winapi_common ${winapi_common_include} ${winapi_common_src}) +target_include_directories(winapi_common PUBLIC include/) + +add_subdirectory(3rdparty/winapi/utf8) +target_link_libraries(winapi_common PRIVATE winapi_utf8) -add_library(winapi_common INTERFACE) -target_include_directories(winapi_common INTERFACE include/) -target_link_libraries(winapi_common INTERFACE Boost::disable_autolinking Boost::boost) +find_package(Boost REQUIRED) +target_link_libraries(winapi_common PUBLIC Boost::boost) +install(TARGETS winapi_common ARCHIVE DESTINATION lib) install(DIRECTORY include/winapi DESTINATION include) if(WINAPI_COMMON_TESTS) -- cgit v1.2.3