diff options
| author | Egor Tensin <egor@tensin.name> | 2026-06-12 23:34:29 +0200 |
|---|---|---|
| committer | Egor Tensin <egor@tensin.name> | 2026-06-12 23:34:29 +0200 |
| commit | f3e9f49f0db9ac3f04377aa68665c005234895f4 (patch) | |
| tree | 3ff3eda3dd4ba30bec1665c92c33d5fb623da2d5 /CMakeLists.txt | |
| parent | add scripts to setup git hooks (diff) | |
| download | winapi-debug-f3e9f49f0db9ac3f04377aa68665c005234895f4.tar.gz winapi-debug-f3e9f49f0db9ac3f04377aa68665c005234895f4.zip | |
cmake: move main library code to src/
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 23b356e..0897012 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,29 +38,9 @@ if(MSVC) "${CMAKE_SHARED_LINKER_FLAGS_DEBUG}") endif() -find_package(Boost CONFIG REQUIRED) add_subdirectory(3rdparty/winapi/common EXCLUDE_FROM_ALL) -file(GLOB_RECURSE winapi_debug_include CONFIGURE_DEPENDS "include/*.hpp") -file(GLOB_RECURSE winapi_debug_src CONFIGURE_DEPENDS "src/*.cpp") -add_library(winapi_debug ${winapi_debug_include} ${winapi_debug_src}) -target_compile_definitions(winapi_debug PUBLIC _NO_CVCONST_H) -target_include_directories(winapi_debug PUBLIC include/) -target_link_libraries(winapi_debug - PUBLIC winapi_common - PRIVATE winapi_utf8) -target_link_libraries(winapi_debug - PUBLIC Boost::boost - PRIVATE Boost::disable_autolinking) -target_link_libraries(winapi_debug PRIVATE dbghelp) -INSTALL(TARGETS winapi_debug ARCHIVE DESTINATION lib) -install(DIRECTORY include/winapi DESTINATION include) - -if(MSVC_VERSION EQUAL 1900) - # DbgHelp warnings on Visual Studio 2015: - target_compile_options(winapi_debug PUBLIC /wd4091) -endif() - +add_subdirectory(src) add_subdirectory(test) add_subdirectory(utils) |
