aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts/common/Macros.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/scripts/common/Macros.cmake')
-rw-r--r--cmake/scripts/common/Macros.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/scripts/common/Macros.cmake b/cmake/scripts/common/Macros.cmake
index 8bee3dadad..09c9c369be 100644
--- a/cmake/scripts/common/Macros.cmake
+++ b/cmake/scripts/common/Macros.cmake
@@ -89,6 +89,10 @@ function(core_add_library name)
target_sources(lib${APP_NAME_LC} PRIVATE ${FILES})
set(CORE_LIBRARY lib${APP_NAME_LC} PARENT_SCOPE)
endif()
+ foreach(src ${SOURCES})
+ list(APPEND sca_sources ${CMAKE_CURRENT_SOURCE_DIR}/${src})
+ endforeach()
+ set(sca_sources ${sca_sources} CACHE STRING "" FORCE)
endfunction()
# Add a test library, and add sources to list for gtest integration macros