diff options
| author | Shauren <shauren.trinity@gmail.com> | 2025-11-12 22:53:54 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2025-11-12 22:53:54 +0100 |
| commit | 33316999060dda030c3c6a43a68d84020928ce70 (patch) | |
| tree | d0ecb2d0ff3eaa11c27b6811c7de0eb4115b1fce /src/tools/extractor_common | |
| parent | 7ccc2d4f6b972800f96f1631da1ff52542710d72 (diff) | |
Build: Modernize include directory management using target_sources(FILE_SET)
Diffstat (limited to 'src/tools/extractor_common')
| -rw-r--r-- | src/tools/extractor_common/CMakeLists.txt | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/tools/extractor_common/CMakeLists.txt b/src/tools/extractor_common/CMakeLists.txt index cded754666d..490baa86714 100644 --- a/src/tools/extractor_common/CMakeLists.txt +++ b/src/tools/extractor_common/CMakeLists.txt @@ -8,11 +8,11 @@ # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -CollectSourceFiles( - ${CMAKE_CURRENT_SOURCE_DIR} - PRIVATE_SOURCES) +add_library(extractor_common STATIC) -add_library(extractor_common STATIC ${PRIVATE_SOURCES}) +CollectAndAddSourceFiles( + extractor_common + ${CMAKE_CURRENT_SOURCE_DIR}) target_link_libraries(extractor_common PRIVATE @@ -22,10 +22,6 @@ target_link_libraries(extractor_common common network) -target_include_directories(extractor_common - PUBLIC - ${CMAKE_CURRENT_SOURCE_DIR}) - set_target_properties(extractor_common PROPERTIES COMPILE_WARNING_AS_ERROR ${WITH_WARNINGS_AS_ERRORS} |
