代码拉取完成,页面将自动刷新
cmake_minimum_required(VERSION 3.1)
project(ICDR)
set(TARGET "ICDR")
add_subdirectory(third_party/fastroute)
add_subdirectory(third_party/OpenDB)
add_subdirectory(third_party/flute3)
set(CMAKE_CXX_STANDARD 11)
file(GLOB_RECURSE SRCS_GLOBAL_ROUTER
${CMAKE_CURRENT_SOURCE_DIR}/global-router/*.cc
${CMAKE_CURRENT_SOURCE_DIR}/global-router/*.cpp
)
file(GLOB_RECURSE SRCS_RSYN
${CMAKE_CURRENT_SOURCE_DIR}/third_party/rsyn/src/*.cpp
${CMAKE_CURRENT_SOURCE_DIR}/third_party/rsyn/src/*.cc
${CMAKE_CURRENT_SOURCE_DIR}/third_party/rsyn/src/*.c)
file(GLOB_RECURSE SRCS_DETAIL_ROUTER
${CMAKE_CURRENT_SOURCE_DIR}/detail-router/*.cc
${CMAKE_CURRENT_SOURCE_DIR}/detail-router/*.cpp
)
set(SRCS
${SRCS_GLOBAL_ROUTER}
${SRCS_DETAIL_ROUTER}
${SRCS_RSYN}
${CMAKE_CURRENT_SOURCE_DIR}/main.cc
)
find_package(Boost COMPONENTS filesystem program_options REQUIRED)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/rsyn/lib/linux)
endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
link_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/rsyn/lib/macosx)
endif()
add_executable(${TARGET} ${SRCS})
target_include_directories(${TARGET} PUBLIC
${CMAKE_CURRENT_SOURCE_DIR}/third_party/fastroute/include
${CMAKE_CURRENT_SOURCE_DIR}/third_party/flute
${CMAKE_CURRENT_SOURCE_DIR}/third_party/OpenDB/include
${CMAKE_CURRENT_SOURCE_DIR}/third_party/rsyn/include
${CMAKE_CURRENT_SOURCE_DIR}/third_party/rsyn/src/rsyn/export
${CMAKE_CURRENT_SOURCE_DIR}/third_party/rsyn/src
${CMAKE_CURRENT_SOURCE_DIR}/detail-router/third_party
${CMAKE_CURRENT_SOURCE_DIR}/detail-router/
${CMAKE_CURRENT_SOURCE_DIR}/include
${CMAKE_CURRENT_SOURCE_DIR}/
${Boost_INCLUDE_DIR}
)
target_link_libraries(${TARGET}
opendb
lefin
defin
FastRoute4.1
flute
lef
def
${Boost_LIBRARIES}
pthread
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。