aboutsummaryrefslogtreecommitdiff
path: root/dep/gsoap/CMakeLists.txt
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-11-12 22:53:54 +0100
committerShauren <shauren.trinity@gmail.com>2025-11-12 22:53:54 +0100
commit33316999060dda030c3c6a43a68d84020928ce70 (patch)
treed0ecb2d0ff3eaa11c27b6811c7de0eb4115b1fce /dep/gsoap/CMakeLists.txt
parent7ccc2d4f6b972800f96f1631da1ff52542710d72 (diff)
Build: Modernize include directory management using target_sources(FILE_SET)HEADmaster
Diffstat (limited to 'dep/gsoap/CMakeLists.txt')
-rw-r--r--dep/gsoap/CMakeLists.txt20
1 files changed, 14 insertions, 6 deletions
diff --git a/dep/gsoap/CMakeLists.txt b/dep/gsoap/CMakeLists.txt
index 77fb50d1e87..6a50b6b68c4 100644
--- a/dep/gsoap/CMakeLists.txt
+++ b/dep/gsoap/CMakeLists.txt
@@ -8,15 +8,23 @@
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-file(GLOB sources *.cpp *.c *.h)
+add_library(gsoap STATIC)
-add_library(gsoap STATIC ${sources})
-
-set_target_properties(gsoap PROPERTIES LINKER_LANGUAGE CXX)
+target_sources(gsoap
+ PRIVATE
+ soapC.cpp
+ soapServer.cpp
+ stdsoap2.cpp)
-target_include_directories(gsoap
+target_sources(gsoap
PUBLIC
- ${CMAKE_CURRENT_SOURCE_DIR})
+ FILE_SET HEADERS
+ FILES
+ soapH.h
+ soapStub.h
+ stdsoap2.h)
+
+set_target_properties(gsoap PROPERTIES LINKER_LANGUAGE CXX)
target_compile_definitions(gsoap
PUBLIC