CMAKE_MINIMUM_REQUIRED(VERSION 2.8) PROJECT(sim) SET(CMAKE_PREFIX_PATH /usr/local/systemc-2.3.3/) set(CMAKE_CXX_STANDARD 17) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3 -pthread") set(CMAKE_BUILD_TYPE Release) INCLUDE_DIRECTORIES(${CMAKE_PREFIX_PATH}/include) INCLUDE_DIRECTORIES(./src) FIND_LIBRARY(systemc systemc ${CMAKE_PREFIX_PATH}/lib-linux64) LINK_DIRECTORIES(${CMAKE_PREFIX_PATH}/lib-linux64) ADD_DEFINITIONS(-D SC_INCLUDE_DYNAMIC_PROCESSES -D SYSTEMC_DISABLE_COPYRIGHT_MESSAGE -D ENABLE_BUFFER_VC_STATS -D SC_DISABLE_API_VERSION_CHECK) ADD_EXECUTABLE(${PROJECT_NAME} src/main.cpp src/networkInterface/NetworkInterfaceTlm.cpp src/networkManager/NetworkManager.cpp src/noc/noc.cpp src/router/router.cpp src/router/router_cs.cpp src/processingElement/ProcessingElementCS.cpp src/traffic/PacketCS.cpp src/traffic/task/TaskPoolCS.cpp src/utils/PacketFactoryCS.cpp src/utils/GlobalResourcesCS.cpp src/utils/memory_manager.cpp src/utils/utils.cpp src/utils/noc_logger.cpp src/utils/report.cpp src/ratatoskrUtils/utils/Report.cpp src/ratatoskrUtils/utils/GlobalReport.cpp src/ratatoskrUtils/utils/Structures.cpp src/ratatoskrUtils/utils/PacketFactory.cpp src/ratatoskrUtils/utils/GlobalResources.cpp src/ratatoskrUtils/utils/Statistics.cpp src/ratatoskrUtils/processingElement/ProcessingElement.cpp src/ratatoskrUtils/processingElement/ProcessingElementVC.cpp src/ratatoskrUtils/networkInterface/NetworkInterface.cpp src/ratatoskrUtils/traffic/Packet.cpp src/ratatoskrUtils/traffic/Flit.cpp src/ratatoskrUtils/traffic/synthetic/SyntheticPool.cpp src/ratatoskrUtils/traffic/task/TaskPool.cpp src/ratatoskrUtils/traffic/TrafficPool.cpp src/ratatoskrUtils/link/Link.cpp src/ratatoskrUtils/utils/TrafficTracer.cpp ) TARGET_LINK_LIBRARIES(${PROJECT_NAME} systemc pugixml boost_system zmq boost_program_options)