aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-18 00:28:14 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-18 00:28:14 +0300
commit0c0ed5f3331465e66145b8c956bb4eaa9df55a83 (patch)
tree15ab65b4c4ff41c8b658d40f1b3ea0d01df4b9ec
parentfix .clang-format (diff)
downloadwinapi-utf8-0c0ed5f3331465e66145b8c956bb4eaa9df55a83.tar.gz
winapi-utf8-0c0ed5f3331465e66145b8c956bb4eaa9df55a83.zip
cmake: files are per-directory, not per-extension
-rw-r--r--CMakeLists.txt8
-rw-r--r--test/CMakeLists.txt4
2 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 70d7a72..4bfa28f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,10 +4,10 @@ project(winapi_utf8 CXX)
include(cmake/common.cmake)
-file(GLOB_RECURSE winapi_utf8_hpp "include/*.hpp")
-file(GLOB winapi_utf8_cpp "src/*.cpp")
-add_library(winapi_utf8 ${winapi_utf8_hpp} ${winapi_utf8_cpp})
-target_include_directories(winapi_utf8 PUBLIC include/)
+file(GLOB_RECURSE winapi_utf8_include "include/*.hpp")
+file(GLOB winapi_utf8_src "src/*.cpp")
+add_library(winapi_utf8 ${winapi_utf8_include} ${winapi_utf8_src})
+target_include_directories(winapi_utf8 PUBLIC include)
add_subdirectory(3rdparty/microsoft/SafeInt EXCLUDE_FROM_ALL)
target_link_libraries(winapi_utf8 PRIVATE SafeInt)
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index bc58900..c410383 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -1,5 +1,5 @@
-file(GLOB unit_tests_cpp "*.cpp")
-add_executable(unit_tests ${unit_tests_cpp})
+file(GLOB unit_tests_src "*.cpp")
+add_executable(unit_tests ${unit_tests_src})
set_target_properties(unit_tests PROPERTIES OUTPUT_NAME winapi-utf8-unit-tests)
target_link_libraries(unit_tests PRIVATE winapi_utf8)