From 3923b68bc0363260c1e8b1099a38ddfcbaca2465 Mon Sep 17 00:00:00 2001 From: visuve Date: Sun, 14 Apr 2024 12:02:41 +0300 Subject: [PATCH] Include the headers too in the build - Again, preparing the use in a submodule --- PystykorvaCLI/CMakeLists.txt | 2 +- PystykorvaLib/CMakeLists.txt | 2 +- PystykorvaTests/CMakeLists.txt | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PystykorvaCLI/CMakeLists.txt b/PystykorvaCLI/CMakeLists.txt index 18c8d00..c9a1d4f 100644 --- a/PystykorvaCLI/CMakeLists.txt +++ b/PystykorvaCLI/CMakeLists.txt @@ -1,4 +1,4 @@ -file(GLOB SourceFiles "*.cpp") +file(GLOB SourceFiles "*.?pp") if(CMAKE_SYSTEM_NAME MATCHES "Windows") set(ExecutableName "Pystykorva") diff --git a/PystykorvaLib/CMakeLists.txt b/PystykorvaLib/CMakeLists.txt index db27f77..b07951c 100644 --- a/PystykorvaLib/CMakeLists.txt +++ b/PystykorvaLib/CMakeLists.txt @@ -5,7 +5,7 @@ endif() # apt install libicu-dev / dnf install icu find_package(ICU COMPONENTS i18n uc REQUIRED) -file(GLOB SourceFiles "*.cpp") +file(GLOB SourceFiles "*.?pp") if(CMAKE_SYSTEM_NAME MATCHES "Windows") set(LibraryName "LibPystykorva") diff --git a/PystykorvaTests/CMakeLists.txt b/PystykorvaTests/CMakeLists.txt index 3e7a947..9036cd8 100644 --- a/PystykorvaTests/CMakeLists.txt +++ b/PystykorvaTests/CMakeLists.txt @@ -1,9 +1,9 @@ if(CMAKE_SYSTEM_NAME MATCHES "Windows") - file(GLOB SourceFiles "*.cpp" "Win32/*.cpp") + file(GLOB SourceFiles "*.?pp" "Win32/*.?pp") set(ExecutableName "PystykorvaTests") set(LibraryName "LibPystykorva") else() - file(GLOB SourceFiles "*.cpp") + file(GLOB SourceFiles "*.?pp") set(ExecutableName "pystykorva_tests") set(LibraryName "libpystykorva") endif()