Make use of target_sources(), make use of target propagation to reduce redundancy in dependencies, some fixes for Clang and CMake < 3.11. Use generic lambdas with auto

This commit is contained in:
Carles Fernandez
2020-06-08 20:04:01 +02:00
parent 7e0502362a
commit 2a3d682f1f
88 changed files with 801 additions and 423 deletions
+15 -6
View File
@@ -95,12 +95,21 @@ set(SYSTEM_PARAMETERS_HEADERS
list(SORT SYSTEM_PARAMETERS_HEADERS)
list(SORT SYSTEM_PARAMETERS_SOURCES)
source_group(Headers FILES ${SYSTEM_PARAMETERS_HEADERS})
add_library(core_system_parameters
${SYSTEM_PARAMETERS_SOURCES}
${SYSTEM_PARAMETERS_HEADERS}
)
if(CMAKE_VERSION VERSION_GREATER 3.13)
add_library(core_system_parameters STATIC)
target_sources(core_system_parameters
PRIVATE
${SYSTEM_PARAMETERS_SOURCES}
PUBLIC
${SYSTEM_PARAMETERS_HEADERS}
)
else()
source_group(Headers FILES ${SYSTEM_PARAMETERS_HEADERS})
add_library(core_system_parameters
${SYSTEM_PARAMETERS_SOURCES}
${SYSTEM_PARAMETERS_HEADERS}
)
endif()
target_link_libraries(core_system_parameters
PUBLIC