cmake link
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
18cd020ded
commit
58f475ef83
|
|
@ -473,7 +473,10 @@ configure_file(${STA_HOME}/util/StaConfig.hh.cmake
|
|||
# compatibility with configure
|
||||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${STA_HOME}/app)
|
||||
|
||||
add_library(OpenSTA
|
||||
add_library(OpenSTA)
|
||||
|
||||
target_sources(OpenSTA
|
||||
PRIVATE
|
||||
${STA_SOURCE}
|
||||
|
||||
${STA_TCL_INIT}
|
||||
|
|
@ -493,6 +496,23 @@ add_library(OpenSTA
|
|||
${BISON_VerilogParser_OUTPUTS}
|
||||
)
|
||||
|
||||
target_link_libraries(OpenSTA
|
||||
${TCL_LIBRARY}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
)
|
||||
|
||||
if (TCL_READLINE_LIBRARY)
|
||||
target_link_libraries(OpenSTA ${TCL_READLINE_LIBRARY})
|
||||
endif()
|
||||
|
||||
if (ZLIB_LIBRARIES)
|
||||
target_link_libraries(OpenSTA ${ZLIB_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (CUDD_LIB)
|
||||
target_link_libraries(OpenSTA ${CUDD_LIB})
|
||||
endif()
|
||||
|
||||
target_include_directories(OpenSTA
|
||||
PUBLIC
|
||||
include
|
||||
|
|
@ -534,22 +554,8 @@ add_executable(sta app/Main.cc)
|
|||
target_link_libraries(sta
|
||||
sta_swig
|
||||
OpenSTA
|
||||
${TCL_LIBRARY}
|
||||
${CMAKE_THREAD_LIBS_INIT}
|
||||
)
|
||||
|
||||
if (TCL_READLINE_LIBRARY)
|
||||
target_link_libraries(sta ${TCL_READLINE_LIBRARY})
|
||||
endif()
|
||||
|
||||
if (ZLIB_LIBRARIES)
|
||||
target_link_libraries(sta ${ZLIB_LIBRARIES})
|
||||
endif()
|
||||
|
||||
if (CUDD_LIB)
|
||||
target_link_libraries(sta ${CUDD_LIB})
|
||||
endif()
|
||||
|
||||
message(STATUS "STA executable: ${STA_HOME}/app/sta")
|
||||
|
||||
################################################################
|
||||
|
|
|
|||
Loading…
Reference in New Issue