Skip to content

Commit 4465d0a

Browse files
committed
rmp: split rmp & rmp_lib
Signed-off-by: Matt Liberty <[email protected]>
1 parent e3d3ade commit 4465d0a

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed

src/rmp/src/CMakeLists.txt

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff 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+
2326
messages(
2427
TARGET rmp
2528
OUTPUT_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+
4962
if (Python3_FOUND AND BUILD_PYTHON)
5063
swig_lib(NAME rmp_py
5164
NAMESPACE rmp

src/rmp/test/cpp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)