flush no cmd lib

This commit is contained in:
James Cherry 2019-06-05 11:29:28 -07:00
parent de34f8b6b2
commit 1158484474
1 changed files with 5 additions and 24 deletions

View File

@ -56,6 +56,8 @@ message(STATUS "Install prefix: ${CMAKE_INSTALL_PREFIX}")
set(STA_SOURCE set(STA_SOURCE
app/StaMain.cc app/StaMain.cc
app/TclInitVar.cc
app/StaApp_wrap.cc
dcalc/ArcDelayCalc.cc dcalc/ArcDelayCalc.cc
dcalc/ArnoldiDelayCalc.cc dcalc/ArnoldiDelayCalc.cc
@ -210,11 +212,6 @@ set(STA_SOURCE
verilog/VerilogParse.cc verilog/VerilogParse.cc
) )
set(STA_CMD_SOURCE
app/TclInitVar.cc
app/StaApp_wrap.cc
)
set(STA_HEADERS set(STA_HEADERS
app/StaMain.hh app/StaMain.hh
@ -664,29 +661,13 @@ set(STA_INCLUDE_DIRS
) )
########################################################### ###########################################################
# Library without TCL commands. # Library
# This is used to build applications that define
# their own SWIG and TCL commands.
########################################################### ###########################################################
# compatibility with configure # compatibility with configure
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${STA_HOME}/app) set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${STA_HOME}/app)
add_library(OpenSTAnoCmds ${STA_SOURCE}) add_library(OpenSTA ${STA_SOURCE})
target_include_directories(OpenSTAnoCmds PUBLIC ${STA_INCLUDE_DIRS})
target_compile_features(OpenSTAnoCmds
PUBLIC cxx_auto_type
)
target_compile_options(OpenSTAnoCmds PUBLIC ${STA_COMPILE_OPTIONS})
###########################################################
# Library
###########################################################
add_library(OpenSTA ${STA_SOURCE} ${STA_CMD_SOURCE})
target_include_directories(OpenSTA PUBLIC ${STA_INCLUDE_DIRS}) target_include_directories(OpenSTA PUBLIC ${STA_INCLUDE_DIRS})
@ -733,7 +714,7 @@ target_compile_options(sta PUBLIC ${STA_COMPILE_OPTIONS})
install(TARGETS sta DESTINATION bin) install(TARGETS sta DESTINATION bin)
# library # library
install(TARGETS OpenSTAnoCmds OpenSTA DESTINATION lib) install(TARGETS OpenSTA DESTINATION lib)
# include # include
install(FILES ${STA_HEADERS} DESTINATION include) install(FILES ${STA_HEADERS} DESTINATION include)