From 0c0ed5f3331465e66145b8c956bb4eaa9df55a83 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 18 Oct 2020 00:28:14 +0300 Subject: cmake: files are per-directory, not per-extension --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') 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) -- cgit v1.2.3