Skip to content

Commit ce91edc

Browse files
Add support for adding additional shared core files to cmake
Signed-off-by: Bartosz Dunajski <[email protected]>
1 parent 2ae0759 commit ce91edc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

shared/source/enable_cores.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ macro(macro_for_each_platform)
5656
list(APPEND CORE_SRCS_${CORE_TYPE}_CPP_BASE ${SRC_FILE})
5757
endif()
5858

59+
set(SRC_FILE ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR}${CORE_TYPE_LOWER}/additional_files_${CORE_TYPE_LOWER}.cmake)
60+
if(EXISTS ${SRC_FILE})
61+
include(${SRC_FILE})
62+
endif()
63+
5964
foreach(BRANCH ${BRANCH_DIR_LIST})
6065
set(PATH_TO_CORE ${CMAKE_CURRENT_SOURCE_DIR}${BRANCH_DIR}${CORE_TYPE_LOWER}${BRANCH})
6166

0 commit comments

Comments
 (0)