加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
CMakeLists.txt 1023 Bytes
一键复制 编辑 原始数据 按行查看 历史
Hic 提交于 2022-04-23 16:47 . release
#新的编译脚本
#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})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化