diff options
author | Lukas Rusak <lorusak@gmail.com> | 2020-10-05 09:35:27 -0700 |
---|---|---|
committer | Lukas Rusak <lorusak@gmail.com> | 2020-10-27 08:21:36 -0700 |
commit | 1b1881bb5fe13bcc68be5a3bfb76b7e6da62a6fa (patch) | |
tree | f4222e8f34acce28fa0b257db8fd52b908ccdb24 /CMakeLists.txt | |
parent | ac39df9be1b377eda1bf5b9e77ca9a1f547cf0c6 (diff) |
[cmake] treat CORE_PLATFORM_NAME_LC as a list
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 01c500d510..348bef4048 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -309,9 +309,12 @@ set_target_properties(lib${APP_NAME_LC} PROPERTIES PREFIX "") set(OTHER_FILES cmake/README.md) # Subdirs +foreach(CORE_PLATFORM_LC ${CORE_PLATFORM_NAME_LC}) + core_add_subdirs_from_filelist(${CMAKE_SOURCE_DIR}/cmake/treedata/common/${CORE_PLATFORM_LC}/*.txt + ${CMAKE_SOURCE_DIR}/cmake/treedata/${CORE_SYSTEM_NAME}/${CORE_PLATFORM_LC}/*.txt) +endforeach() + core_add_subdirs_from_filelist(${CMAKE_SOURCE_DIR}/cmake/treedata/common/*.txt - ${CMAKE_SOURCE_DIR}/cmake/treedata/common/${CORE_PLATFORM_NAME_LC}/*.txt - ${CMAKE_SOURCE_DIR}/cmake/treedata/${CORE_SYSTEM_NAME}/${CORE_PLATFORM_NAME_LC}/*.txt ${CMAKE_SOURCE_DIR}/cmake/treedata/${CORE_SYSTEM_NAME}/*.txt) core_add_optional_subdirs_from_filelist(${CMAKE_SOURCE_DIR}/cmake/treedata/optional/common/*.txt ${CMAKE_SOURCE_DIR}/cmake/treedata/optional/${CORE_SYSTEM_NAME}/*.txt) |