2020-04-23 16:11:34 +02:00
|
|
|
cmake_minimum_required(VERSION 3.12)
|
2021-07-26 16:21:01 +02:00
|
|
|
find_package(Boost COMPONENTS program_options REQUIRED)
|
2017-09-18 07:30:54 +02:00
|
|
|
add_executable (simple_system
|
2017-09-20 21:26:46 +02:00
|
|
|
plic.cpp
|
2017-09-18 07:30:54 +02:00
|
|
|
uart.cpp
|
|
|
|
spi.cpp
|
|
|
|
gpio.cpp
|
|
|
|
test_initiator.cpp
|
|
|
|
simple_system.cpp
|
|
|
|
sc_main.cpp
|
|
|
|
)
|
2020-04-23 16:02:12 +02:00
|
|
|
target_link_libraries (simple_system LINK_PUBLIC scc)
|
2021-07-26 16:21:01 +02:00
|
|
|
if(TARGET Boost::program_options)
|
|
|
|
target_link_libraries(simple_system PUBLIC Boost::program_options)
|
|
|
|
else()
|
|
|
|
target_link_libraries(simple_system PUBLIC ${BOOST_program_options_LIBRARY})
|
|
|
|
endif()
|
2020-06-04 20:13:02 +02:00
|
|
|
add_test(NAME simple_system_test COMMAND simple_system)
|