-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
24 lines (20 loc) · 840 Bytes
/
CMakeLists.txt
File metadata and controls
24 lines (20 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 3.18.4)
project(renode_systemc_examples)
file(GLOB ALL_EXAMPLES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} examples/*/)
foreach(example ${ALL_EXAMPLES})
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${example}/)
add_subdirectory(${example} ${CMAKE_BINARY_DIR}/${example})
endif()
endforeach()
file(GLOB ALL_TESTS RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} tests/*/)
foreach(test ${ALL_TESTS})
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${test})
add_subdirectory(${test} ${CMAKE_BINARY_DIR}/${test})
endif()
endforeach()
file(GLOB ALL_EXAMPLES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} examples-native/*/)
foreach(example ${ALL_EXAMPLES})
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${example})
add_subdirectory(${example} ${CMAKE_BINARY_DIR}/${example})
endif()
endforeach()