Use target_link_libraries correctly everywhere to avoid runtime link issues

This commit is contained in:
Robert Taylor 2022-12-10 17:12:38 +00:00 committed by Jean-Paul Chaput
parent 974473aff7
commit 095e260e3b
20 changed files with 146 additions and 146 deletions

View File

@ -56,7 +56,7 @@
add_library( Seabreeze ${cpps} ${mocCpps} ${pyCpps} )
set_target_properties( Seabreeze PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( Seabreeze ${depLibs} )
target_link_libraries( Seabreeze ${depLibs} )
add_python_module( "${pyCpps}"
"${pyIncludes}"

View File

@ -95,7 +95,7 @@ endif ( CHECK_DETERMINISM )
add_library( anabatic ${cpps} )
set_target_properties( anabatic PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( anabatic ${depLibs} )
target_link_libraries( anabatic ${depLibs} )
add_python_module( "${pyCpps}"
"${pyIncludes}"

View File

@ -106,7 +106,7 @@
add_library( bora ${cpps} ${mocCpps} ${pyCpps} )
set_target_properties( bora PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( bora ${depLibs} )
target_link_libraries( bora ${depLibs} )
add_python_module( "${pyCpps}"
"${pyIncludes}"

View File

@ -35,22 +35,22 @@
add_library( libmanager ${cpps} ${moccpps} )
set_target_properties( libmanager PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( libmanager crlcore
# ${HURRICANE_PYTHON_LIBRARIES}
# ${HURRICANE_GRAPHICAL_LIBRARIES}
# ${HURRICANE_LIBRARIES}
# ${BOOKSHELF_LIBRARY}
# ${CONFIGURATION_LIBRARY}
# ${CIF_LIBRARY}
# ${AGDS_LIBRARY}
# ${UTILITIES_LIBRARY}
# ${LEFDEF_LIBRARIES}
# ${OA_LIBRARIES}
# ${QtX_LIBRARIES}
# ${Boost_LIBRARIES}
# ${LIBXML2_LIBRARIES}
# ${Python_LIBRARIES} -lutil
# )
target_link_libraries( libmanager crlcore
${HURRICANE_PYTHON_LIBRARIES}
${HURRICANE_GRAPHICAL_LIBRARIES}
${HURRICANE_LIBRARIES}
${BOOKSHELF_LIBRARY}
${CONFIGURATION_LIBRARY}
${CIF_LIBRARY}
${AGDS_LIBRARY}
${UTILITIES_LIBRARY}
${LEFDEF_LIBRARIES}
${OA_LIBRARIES}
${QtX_LIBRARIES}
${Boost_LIBRARIES}
${LIBXML2_LIBRARIES}
${Python_LIBRARIES} -lutil
)
install( TARGETS libmanager DESTINATION lib${LIB_SUFFIX} )
install( FILES ${includes} ${mocincludes} DESTINATION include/coriolis2/crlcore )

View File

@ -78,7 +78,7 @@ endif ( CHECK_DETERMINISM )
add_library( katabatic ${cpps} )
set_target_properties( katabatic PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( katabatic ${depLibs} )
target_link_libraries( katabatic ${depLibs} )
add_python_module( "${pyCpps}"
"${pyIncludes}"

View File

@ -100,7 +100,7 @@
add_library( kite ${cpps} ${mocCpps} ${pyCpps} )
set_target_properties( kite PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( kite ${depLibs} )
target_link_libraries( kite ${depLibs} )
add_python_module( "${pyCpps}"
"${pyIncludes}"

View File

@ -45,23 +45,23 @@
add_library ( knik ${cpps} ${mocCpps} )
set_target_properties ( knik PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries ( knik ${FLUTE_LIBRARY}
# ${CORIOLIS_LIBRARIES}
# ${HURRICANE_PYTHON_LIBRARIES}
# ${HURRICANE_GRAPHICAL_LIBRARIES}
# ${HURRICANE_LIBRARIES}
# ${CONFIGURATION_LIBRARY}
# ${CIF_LIBRARY}
# ${AGDS_LIBRARY}
# ${UTILITIES_LIBRARY}
# ${FLUTE_LIBRARIES}
# ${LEFDEF_LIBRARIES}
# ${OA_LIBRARIES}
# ${QtX_LIBRARIES}
# ${Boost_LIBRARIES}
# ${LIBXML2_LIBRARIES}
# ${Python_LIBRARIES} -lutil
# )
target_link_libraries ( knik ${FLUTE_LIBRARY}
${CORIOLIS_LIBRARIES}
${HURRICANE_PYTHON_LIBRARIES}
${HURRICANE_GRAPHICAL_LIBRARIES}
${HURRICANE_LIBRARIES}
${CONFIGURATION_LIBRARY}
${CIF_LIBRARY}
${AGDS_LIBRARY}
${UTILITIES_LIBRARY}
${FLUTE_LIBRARIES}
${LEFDEF_LIBRARIES}
${OA_LIBRARIES}
${QtX_LIBRARIES}
${Boost_LIBRARIES}
${LIBXML2_LIBRARIES}
${Python_LIBRARIES} -lutil
)
install ( TARGETS knik DESTINATION lib${LIB_SUFFIX} )
install ( FILES ${includes}

View File

@ -45,29 +45,29 @@
add_library ( nimbus ${cpps} ${pyCpps} )
set_target_properties ( nimbus PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries ( nimbus ${CORIOLIS_LIBRARIES}
# ${HURRICANE_PYTHON_LIBRARIES}
# ${HURRICANE_GRAPHICAL_LIBRARIES}
# ${HURRICANE_LIBRARIES}
# ${CONFIGURATION_LIBRARY}
# ${CIF_LIBRARY}
# ${AGDS_LIBRARY}
# ${LEFDEF_LIBRARIES}
# ${OA_LIBRARIES}
# ${QtX_LIBRARIES}
# ${Boost_LIBRARIES}
# ${LIBXML2_LIBRARIES}
# ${Python_LIBRARIES} -lutil
# )
target_link_libraries ( nimbus ${CORIOLIS_LIBRARIES}
${HURRICANE_PYTHON_LIBRARIES}
${HURRICANE_GRAPHICAL_LIBRARIES}
${HURRICANE_LIBRARIES}
${CONFIGURATION_LIBRARY}
${CIF_LIBRARY}
${AGDS_LIBRARY}
${LEFDEF_LIBRARIES}
${OA_LIBRARIES}
${QtX_LIBRARIES}
${Boost_LIBRARIES}
${LIBXML2_LIBRARIES}
${Python_LIBRARIES} -lutil
)
add_library ( pyNimbus MODULE ${pyCpps} )
set_target_properties ( pyNimbus PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
PREFIX ""
OUTPUT_NAME "Nimbus"
)
#target_link_libraries ( pyNimbus nimbus
# ${CORIOLIS_PYTHON_LIBRARIES}
# )
target_link_libraries ( pyNimbus nimbus
${CORIOLIS_PYTHON_LIBRARIES}
)
install ( TARGETS nimbus DESTINATION lib${LIB_SUFFIX} )
install ( TARGETS pyNimbus DESTINATION ${PYTHON_SITE_PACKAGES} )

View File

@ -24,7 +24,7 @@
)
set ( testcpps BookshelfTkMain.cpp )
add_library ( bookshelf ${cpps} )
#target_link_libraries ( bookshelf vlsisapdutils )
target_link_libraries ( bookshelf vlsisapdutils )
set_target_properties ( bookshelf PROPERTIES VERSION 1.0 SOVERSION 1 )
add_executable ( bookshelf-tk ${testcpps} )
target_link_libraries ( bookshelf-tk bookshelf ${Boost_LIBRARIES} ${Python_LIBRARIES})

View File

@ -41,12 +41,12 @@
add_library ( configuration ${cpps} ${mocCpps} ${RCC_SRCS} )
set_target_properties ( configuration PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries ( configuration vlsisapdutils
# ${QtX_LIBRARIES}
# ${Python_LIBRARIES}
# ${LIBXML2_LIBRARIES}
# ${Boost_LIBRARIES}
# )
target_link_libraries ( configuration vlsisapdutils
${QtX_LIBRARIES}
${Python_LIBRARIES}
${LIBXML2_LIBRARIES}
${Boost_LIBRARIES}
)
if (Boost_FOUND)
add_library ( pyConfiguration MODULE ${pycpps})
@ -54,11 +54,11 @@
OUTPUT_NAME "Cfg"
PREFIX ""
)
#target_link_libraries ( pyConfiguration configuration
# ${Python_LIBRARIES}
# ${LIBXML2_LIBRARIES}
# ${Boost_LIBRARIES}
# )
target_link_libraries ( pyConfiguration configuration
${Python_LIBRARIES}
${LIBXML2_LIBRARIES}
${Boost_LIBRARIES}
)
install ( TARGETS pyConfiguration DESTINATION ${PYTHON_SITE_PACKAGES} )
endif(Boost_FOUND)

View File

@ -54,8 +54,8 @@ add_library ( liberty ${cpps}
${liberty_parser_cpps}
)
set_target_properties ( liberty PROPERTIES VERSION 1.0 SOVERSION 1)
#target_link_libraries ( liberty ${Boost_LIBRARIES}
# )
target_link_libraries ( liberty ${Boost_LIBRARIES}
)
install ( TARGETS liberty DESTINATION lib${LIB_SUFFIX} )
install ( FILES ${includes} DESTINATION include/vlsisapd/liberty )
@ -66,6 +66,6 @@ if ( Boost_FOUND )
OUTPUT_NAME "LIBERTY"
PREFIX ""
)
# target_link_libraries ( pyLIBERTY liberty ${Boost_LIBRARIES} ${Python_LIBRARIES} )
target_link_libraries ( pyLIBERTY liberty ${Boost_LIBRARIES} ${Python_LIBRARIES} )
install ( TARGETS pyLIBERTY DESTINATION ${PYTHON_SITE_PACKAGES} )
endif ( Boost_FOUND )

View File

@ -40,25 +40,25 @@
add_library ( intervalTree ${intervalTreeCpps} )
set_target_properties ( intervalTree PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries ( intervalTree ${HURRICANE_LIBRARIES} )
target_link_libraries ( intervalTree ${HURRICANE_LIBRARIES} )
add_library ( equinox ${cpps} ${mocCpps} )
set_target_properties ( equinox PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries ( equinox intervalTree
# ${CORIOLIS_LIBRARIES}
# ${HURRICANE_PYTHON_LIBRARIES}
# ${HURRICANE_GRAPHICAL_LIBRARIES}
# ${HURRICANE_LIBRARIES}
# ${CONFIGURATION_LIBRARY}
# ${CIF_LIBRARY}
# ${AGDS_LIBRARY}
# ${LEFDEF_LIBRARIES}
# ${OA_LIBRARIES}
# ${QtX_LIBRARIES}
# ${Boost_LIBRARIES}
# ${LIBXML2_LIBRARIES}
# ${Python_LIBRARIES} -lutil
# )
target_link_libraries ( equinox intervalTree
${CORIOLIS_LIBRARIES}
${HURRICANE_PYTHON_LIBRARIES}
${HURRICANE_GRAPHICAL_LIBRARIES}
${HURRICANE_LIBRARIES}
${CONFIGURATION_LIBRARY}
${CIF_LIBRARY}
${AGDS_LIBRARY}
${LEFDEF_LIBRARIES}
${OA_LIBRARIES}
${QtX_LIBRARIES}
${Boost_LIBRARIES}
${LIBXML2_LIBRARIES}
${Python_LIBRARIES} -lutil
)
install ( TARGETS equinox intervalTree DESTINATION lib${LIB_SUFFIX} )
install ( FILES ${includes}

View File

@ -64,7 +64,7 @@
add_library( etesian ${cpps} ${mocCpps} ${pyCpps} )
set_target_properties( etesian PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( etesian ${depLibs} )
target_link_libraries( etesian ${depLibs} )
add_python_module( "${pyCpps}"
"${pyIncludes}"

View File

@ -164,7 +164,7 @@
add_library( analog ${cpps} ${pyCpps} )
set_target_properties( analog PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( analog ${depLibs} )
target_link_libraries( analog ${depLibs} )
add_python_module( "${pyCpps}"
"${pyIncludes}"

View File

@ -115,7 +115,7 @@
add_library( katana ${cpps} ${mocCpps} ${pyCpps} )
set_target_properties( katana PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( katana ${depLibs} )
target_link_libraries( katana ${depLibs} )
add_python_module( "${pyCpps}"
"${pyIncludes}"

View File

@ -50,31 +50,31 @@
add_library ( mauka ${cpps} ${mocCpps} ${pyCpps} )
set_target_properties ( mauka PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries ( mauka ${METIS_LIBRARIES}
# ${NIMBUS_LIBRARIES}
# ${CORIOLIS_LIBRARIES}
# ${HURRICANE_PYTHON_LIBRARIES}
# ${HURRICANE_GRAPHICAL_LIBRARIES}
# ${HURRICANE_LIBRARIES}
# ${CONFIGURATION_LIBRARY}
# ${CIF_LIBRARY}
# ${AGDS_LIBRARY}
# ${LEFDEF_LIBRARIES}
# ${OA_LIBRARIES}
# ${QtX_LIBRARIES}
# ${Boost_LIBRARIES}
# ${LIBXML2_LIBRARIES}
# ${Python_LIBRARIES} -lutil
# )
target_link_libraries ( mauka ${METIS_LIBRARIES}
${NIMBUS_LIBRARIES}
${CORIOLIS_LIBRARIES}
${HURRICANE_PYTHON_LIBRARIES}
${HURRICANE_GRAPHICAL_LIBRARIES}
${HURRICANE_LIBRARIES}
${CONFIGURATION_LIBRARY}
${CIF_LIBRARY}
${AGDS_LIBRARY}
${LEFDEF_LIBRARIES}
${OA_LIBRARIES}
${QtX_LIBRARIES}
${Boost_LIBRARIES}
${LIBXML2_LIBRARIES}
${Python_LIBRARIES} -lutil
)
add_library ( pyMauka MODULE ${pyCpps} )
set_target_properties ( pyMauka PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
PREFIX ""
OUTPUT_NAME "Mauka"
)
#target_link_libraries ( pyMauka mauka
# ${CORIOLIS_PYTHON_LIBRARIES}
# )
target_link_libraries ( pyMauka mauka
${CORIOLIS_PYTHON_LIBRARIES}
)
install ( TARGETS mauka DESTINATION lib${LIB_SUFFIX} )
install ( TARGETS pyMauka DESTINATION ${PYTHON_SITE_PACKAGES} )

View File

@ -30,31 +30,31 @@ endif ( HMETIS_FOUND )
add_library ( metis ${cpps} ${pyCpps} )
set_target_properties ( metis PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries ( metis ${HMETIS_LIBRARIES}
# ${NIMBUS_LIBRARIES}
# ${CORIOLIS_LIBRARIES}
# ${HURRICANE_PYTHON_LIBRARIES}
# ${HURRICANE_GRAPHICAL_LIBRARIES}
# ${HURRICANE_LIBRARIES}
# ${CONFIGURATION_LIBRARY}
# ${CIF_LIBRARY}
# ${AGDS_LIBRARY}
# ${LEFDEF_LIBRARIES}
# ${OA_LIBRARIES}
# ${QT_LIBRARIES}
# ${Boost_LIBRARIES}
# ${LIBXML2_LIBRARIES}
# ${Python_LIBRARIES} -lutil
# )
target_link_libraries ( metis ${HMETIS_LIBRARIES}
${NIMBUS_LIBRARIES}
${CORIOLIS_LIBRARIES}
${HURRICANE_PYTHON_LIBRARIES}
${HURRICANE_GRAPHICAL_LIBRARIES}
${HURRICANE_LIBRARIES}
${CONFIGURATION_LIBRARY}
${CIF_LIBRARY}
${AGDS_LIBRARY}
${LEFDEF_LIBRARIES}
${OA_LIBRARIES}
${QT_LIBRARIES}
${Boost_LIBRARIES}
${LIBXML2_LIBRARIES}
${Python_LIBRARIES} -lutil
)
add_library ( pyMetis MODULE ${pyCpps} )
set_target_properties ( pyMetis PROPERTIES COMPILE_FLAGS "${COMPILE_FLAGS} -D__PYTHON_MODULE__=1"
PREFIX ""
OUTPUT_NAME "Metis"
)
#target_link_libraries ( pyMetis metis
# ${CORIOLIS_PYTHON_LIBRARIES}
# )
target_link_libraries ( pyMetis metis
${CORIOLIS_PYTHON_LIBRARIES}
)
install ( TARGETS metis DESTINATION lib${LIB_SUFFIX} )
install ( TARGETS pyMetis DESTINATION ${PYTHON_SITE_PACKAGES} )

View File

@ -42,21 +42,21 @@
add_library ( solstice ${cpps} ${mocCpps} )
set_target_properties ( solstice PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries ( solstice ${EQUINOX_LIBRARIES}
# ${CORIOLIS_LIBRARIES}
# ${HURRICANE_PYTHON_LIBRARIES}
# ${HURRICANE_GRAPHICAL_LIBRARIES}
# ${HURRICANE_LIBRARIES}
# ${CONFIGURATION_LIBRARY}
# ${CIF_LIBRARY}
# ${AGDS_LIBRARY}
# ${LEFDEF_LIBRARIES}
# ${OA_LIBRARIES}
# ${QtX_LIBRARIES}
# ${Boost_LIBRARIES}
# ${LIBXML2_LIBRARIES}
# ${Python_LIBRARIES} -lutil
# )
target_link_libraries ( solstice ${EQUINOX_LIBRARIES}
${CORIOLIS_LIBRARIES}
${HURRICANE_PYTHON_LIBRARIES}
${HURRICANE_GRAPHICAL_LIBRARIES}
${HURRICANE_LIBRARIES}
${CONFIGURATION_LIBRARY}
${CIF_LIBRARY}
${AGDS_LIBRARY}
${LEFDEF_LIBRARIES}
${OA_LIBRARIES}
${QtX_LIBRARIES}
${Boost_LIBRARIES}
${LIBXML2_LIBRARIES}
${Python_LIBRARIES} -lutil
)
install ( TARGETS solstice DESTINATION lib${LIB_SUFFIX} )
install ( FILES ${includes}

View File

@ -46,7 +46,7 @@
add_library( tutorial ${cpps} ${mocCpps} ${pyCpps} )
set_target_properties( tutorial PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( tutorial ${depLibs} )
target_link_libraries( tutorial ${depLibs} )
add_python_module( "${pyCpps}"
"${pyIncludes}"

View File

@ -86,7 +86,7 @@
add_library( unicorn ${cpps} ${mocCpps} ${pyCpps} )
set_target_properties( unicorn PROPERTIES VERSION 1.0 SOVERSION 1 )
#target_link_libraries( unicorn ${depLibs} )
target_link_libraries( unicorn ${depLibs} )
add_python_module( "${pyCpps}"
"${pyIncludes}"