tclreadline cmake
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
81c68379a3
commit
754dc6255e
|
|
@ -336,6 +336,7 @@ add_custom_command(OUTPUT ${STA_TCL_INIT}
|
||||||
# Do not use REQUIRED because it also requires TK, which is not used by OpenSTA.
|
# Do not use REQUIRED because it also requires TK, which is not used by OpenSTA.
|
||||||
find_package(TCL)
|
find_package(TCL)
|
||||||
|
|
||||||
|
# Referenced by util/StaConfig.hh.cmake
|
||||||
set(TCL_READLINE 0)
|
set(TCL_READLINE 0)
|
||||||
# check for tclReadline
|
# check for tclReadline
|
||||||
if (USE_TCL_READLINE)
|
if (USE_TCL_READLINE)
|
||||||
|
|
@ -352,13 +353,19 @@ if (USE_TCL_READLINE)
|
||||||
)
|
)
|
||||||
if (TCL_READLINE_LIBRARY)
|
if (TCL_READLINE_LIBRARY)
|
||||||
message(STATUS "TCL readline library: ${TCL_READLINE_LIBRARY}")
|
message(STATUS "TCL readline library: ${TCL_READLINE_LIBRARY}")
|
||||||
# Referenced by StaConfig.hh.cmake
|
else()
|
||||||
set(TCL_READLINE 1)
|
message(STATUS "TCL readline library: NOT FOUND")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
find_path(TCL_READLINE_INCLUDE tclreadline.h)
|
find_path(TCL_READLINE_INCLUDE tclreadline.h)
|
||||||
if (TCL_READLINE_INCLUDE)
|
if (TCL_READLINE_INCLUDE)
|
||||||
message(STATUS "TCL readline header: ${TCL_READLINE_INCLUDE}/tclreadline.h")
|
message(STATUS "TCL readline header: ${TCL_READLINE_INCLUDE}/tclreadline.h")
|
||||||
|
else()
|
||||||
|
message(STATUS "TCL readline header: NOT FOUND")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (TCL_READLINE_LIBRARY AND TCL_READLINE_INCLUDE)
|
||||||
|
set(TCL_READLINE 1)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
@ -515,21 +522,14 @@ target_link_libraries(OpenSTA
|
||||||
${CUDD_LIB}
|
${CUDD_LIB}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (TCL_READLINE_LIBRARY)
|
|
||||||
target_link_libraries(OpenSTA ${TCL_READLINE_LIBRARY})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
if (ZLIB_LIBRARIES)
|
if (ZLIB_LIBRARIES)
|
||||||
target_link_libraries(OpenSTA ${ZLIB_LIBRARIES})
|
target_link_libraries(OpenSTA ${ZLIB_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
target_link_libraries(OpenSTA )
|
|
||||||
|
|
||||||
target_include_directories(OpenSTA
|
target_include_directories(OpenSTA
|
||||||
PUBLIC
|
PUBLIC
|
||||||
include
|
include
|
||||||
${TCL_INCLUDE_PATH}
|
${TCL_INCLUDE_PATH}
|
||||||
${TCL_READLINE_INCLUDE}
|
|
||||||
|
|
||||||
PRIVATE
|
PRIVATE
|
||||||
include/sta
|
include/sta
|
||||||
|
|
@ -537,6 +537,13 @@ target_include_directories(OpenSTA
|
||||||
${CUDD_INCLUDE}
|
${CUDD_INCLUDE}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (TCL_READLINE)
|
||||||
|
target_link_libraries(OpenSTA ${TCL_READLINE_LIBRARY})
|
||||||
|
target_include_directories(OpenSTA
|
||||||
|
PUBLIC
|
||||||
|
${TCL_READLINE_INCLUDE})
|
||||||
|
endif()
|
||||||
|
|
||||||
# common to gcc/clang
|
# common to gcc/clang
|
||||||
set(CXX_FLAGS -Wall -Wextra -pedantic -Wcast-qual -Wredundant-decls -Wformat-security)
|
set(CXX_FLAGS -Wall -Wextra -pedantic -Wcast-qual -Wredundant-decls -Wformat-security)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue