-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (24 loc) · 1023 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
26
27
28
29
30
31
32
33
34
35
36
37
#新的编译脚本
#https://blog.csdn.net/liitdar/article/details/81144461
cmake_minimum_required(VERSION 3.0)
project(popnet)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_BUILD_TYPE DEBUG)
#set(CMAKE_BUILD_TYPE RELEASE)
set(POWER_RELEASE orion_power_beta_mar2003)
set(GRAPH_LIB graph_lib)
add_subdirectory(${POWER_RELEASE}/power)
add_subdirectory(${GRAPH_LIB})
set(CMAKE_CXX_FLAGS "-DS_OUT_DEBUG -Wno-deprecated -g -DPOWER_TEST")
include_directories(${POWER_RELEASE}/power ${POWER_RELEASE}/library)
include_directories(${GRAPH_LIB})
set(SIM_SRCS SString.cc SStd.cc SRGen.cc configuration.cc flit.cc sim_router.cc sim_routing.cc sim_vcarb.cc mess_event.cc sim_foundation.cc mess_queue.cc main.cc)
aux_source_directory(changes NEW_SRCS)
link_directories(${POWER_RELEASE}/power)
find_package(Boost REQUIRED COMPONENTS
graph
)
include_directories(${Boost_INCLUDE_DIRS})
add_executable(popnet ${SIM_SRCS} ${NEW_SRCS})
target_link_libraries(popnet orion_power mygraph)
target_link_libraries(popnet ${Boost_LIBRARIES})