1 Star 1 Fork 1

cassuto/icdr

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
CMakeLists.txt 1.87 KB
一键复制 编辑 原始数据 按行查看 历史
cassuto1 提交于 2020-11-05 03:45 . Fix pins.
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
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/nullptr12/icdr.git
git@gitee.com:nullptr12/icdr.git
nullptr12
icdr
icdr
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385