SystemC-Components-Test/examples/simple_system/CMakeLists.txt

18 lines
542 B
CMake
Raw Normal View History

2020-04-23 16:11:34 +02:00
cmake_minimum_required(VERSION 3.12)
find_package(Boost COMPONENTS program_options REQUIRED)
2017-09-18 07:30:54 +02:00
add_executable (simple_system
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)
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)