summaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorEgor Tensin <egor@tensin.name>2026-06-18 22:38:50 +0200
committerEgor Tensin <egor@tensin.name>2026-06-18 22:38:50 +0200
commitd8b6bb52fb9f200925fe53bf431612f5446e1dcf (patch)
treeab5cb81f88293335fec83ed6b4638919084e9a5e /src
parentfix a compiler warning (diff)
downloadwinapi-debug-d8b6bb52fb9f200925fe53bf431612f5446e1dcf.tar.gz
winapi-debug-d8b6bb52fb9f200925fe53bf431612f5446e1dcf.zip
cmake: prettify CMakeLists.txt files
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt8
-rw-r--r--src/utils/CMakeLists.txt8
2 files changed, 11 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a78f35a..a867a98 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -7,12 +7,14 @@ 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)
+ PRIVATE winapi_utf8
+)
target_link_libraries(winapi_debug
PUBLIC Boost::boost
- PRIVATE Boost::disable_autolinking)
+ PRIVATE Boost::disable_autolinking
+)
target_link_libraries(winapi_debug PRIVATE dbghelp)
-INSTALL(TARGETS winapi_debug ARCHIVE DESTINATION lib)
+install(TARGETS winapi_debug ARCHIVE DESTINATION lib)
install(DIRECTORY ../include/winapi DESTINATION include)
if(MSVC_VERSION EQUAL 1900)
diff --git a/src/utils/CMakeLists.txt b/src/utils/CMakeLists.txt
index 1664882..7868dae 100644
--- a/src/utils/CMakeLists.txt
+++ b/src/utils/CMakeLists.txt
@@ -5,7 +5,10 @@ file(GLOB headers CONFIGURE_DEPENDS "*.hpp")
function(add_util name src)
add_executable("${name}" ${src} ${headers})
target_link_libraries("${name}" PRIVATE winapi_debug)
- target_link_libraries("${name}" PRIVATE Boost::disable_autolinking Boost::program_options)
+ target_link_libraries("${name}" PRIVATE
+ Boost::disable_autolinking
+ Boost::program_options
+ )
install(TARGETS "${name}" RUNTIME DESTINATION bin)
if(MSVC)
install(FILES "$<TARGET_PDB_FILE:${name}>" DESTINATION bin OPTIONAL)
@@ -25,5 +28,6 @@ if(MSVC)
--
"$<TARGET_FILE:enum_symbols>"
--pdb "$<TARGET_PDB_FILE:test_lib>"
- --mask "test_ns:*")
+ --mask "test_ns:*"
+ )
endif()