File tree Expand file tree Collapse file tree 2 files changed +23
-10
lines changed
Expand file tree Collapse file tree 2 files changed +23
-10
lines changed Original file line number Diff line number Diff line change @@ -12,14 +12,17 @@ swig_lib(NAME rmp
1212 SWIG_INCLUDES ${OPENSTA_HOME}
1313)
1414
15- target_sources (rmp
16- PRIVATE
15+ add_library (rmp_lib
1716 Restructure.cpp
18- MakeRestructure.cpp
1917 delay_optimization_strategy.cpp
2018 zero_slack_strategy.cpp
2119)
2220
21+ target_sources (rmp
22+ PRIVATE
23+ MakeRestructure.cpp
24+ )
25+
2326messages(
2427TARGET rmp
2528OUTPUT_DIR ..
@@ -33,19 +36,29 @@ target_include_directories(rmp
3336 # Unfortunate side-effect of swig include StaTcl.i
3437 ${OPENSTA_HOME} /include /sta
3538 ${OPENSTA_HOME}
36- )
39+ )
3740
38- target_link_libraries (rmp
39- PRIVATE
41+ target_include_directories (rmp_lib
42+ PUBLIC
43+ ../include
44+ )
45+
46+ target_link_libraries (rmp_lib
47+ PUBLIC
4048 odb
41- dbSta
49+ dbSta_lib
4250 OpenSTA
43- rsz
51+ rsz_lib
4452 utl_lib
4553 cut
4654 ${ABC_LIBRARY}
47- )
55+ )
4856
57+ target_link_libraries (rmp
58+ PRIVATE
59+ rmp_lib
60+ )
61+
4962if (Python3_FOUND AND BUILD_PYTHON)
5063 swig_lib(NAME rmp_py
5164 NAMESPACE rmp
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ target_link_libraries(RmpGTests
1010 rsz_lib
1111 utl_lib
1212 libabc
13- rmp
13+ rmp_lib
1414 ${TCL_LIBRARY}
1515)
1616
You can’t perform that action at this time.
0 commit comments