-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
executable file
·25 lines (19 loc) · 975 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
cmake_minimum_required(VERSION 3.16)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
project(TrafficExample)
add_executable(TrafficExample
${CMAKE_SOURCE_DIR}/examples/amba_tlm/TrafficExample.cpp
${CMAKE_SOURCE_DIR}/examples/amba_tlm/Memory.cpp
${CMAKE_SOURCE_DIR}/examples/amba_tlm/Monitor.cpp
${CMAKE_SOURCE_DIR}/examples/amba_tlm/TrafficGenerator.cpp
${CMAKE_SOURCE_DIR}/src/libarmaxi4.cpp
)
find_library(SYSTEMC_LIB systemc PATHS /00_ycl/02_install/systemc/systemc-2.3.3/lib-linux64)
target_link_libraries(TrafficExample PUBLIC ${SYSTEMC_LIB})
target_include_directories(TrafficExample PUBLIC
"${CMAKE_SOURCE_DIR}/examples/amba_tlm/"
"${CMAKE_SOURCE_DIR}/include/"
"/00_ycl/02_install/systemc/systemc-2.3.3/include"
)
target_compile_options(TrafficExample PRIVATE "-g")