@ -117,24 +117,24 @@ tristatebool.cpp
)
)
add_library ( qbt_base STATIC ${ QBT_BASE_HEADERS } ${ QBT_BASE_SOURCES } )
add_library ( qbt_base STATIC ${ QBT_BASE_HEADERS } ${ QBT_BASE_SOURCES } )
target_link_libraries ( qbt_base ZLIB::ZLIB LibtorrentRasterbar::LibTorrent )
target_link_libraries ( qbt_base PRIVATE ZLIB::ZLIB PUBLIC LibtorrentRasterbar::LibTorrent )
target_link_qt_components ( qbt_base Core Network Xml )
target_link_qt_components ( qbt_base PUBLIC Core Network Xml )
if ( QT4_FOUND )
if ( QT4_FOUND )
if ( GUI )
if ( GUI )
target_link_libraries ( qbt_base Qt4::QtGui )
target_link_libraries ( qbt_base PUBLIC Qt4::QtGui )
endif ( GUI )
endif ( GUI )
else ( QT4_FOUND )
else ( QT4_FOUND )
if ( GUI )
if ( GUI )
target_link_libraries ( qbt_base Qt5::Gui Qt5::Widgets )
target_link_libraries ( qbt_base PUBLIC Qt5::Gui Qt5::Widgets )
endif ( GUI )
endif ( GUI )
endif ( QT4_FOUND )
endif ( QT4_FOUND )
if ( DBUS )
if ( DBUS )
target_link_qt_components ( qbt_base DBus )
target_link_qt_components ( qbt_base PRIVATE DBus )
endif ( )
endif ( )
if ( APPLE )
if ( APPLE )
find_library ( IOKit_LIBRARY IOKit )
find_library ( IOKit_LIBRARY IOKit )
find_library ( Carbon_LIBRARY Carbon )
find_library ( Carbon_LIBRARY Carbon )
target_link_libraries ( qbt_base ${ Carbon_LIBRARY } ${ IOKit_LIBRARY } )
target_link_libraries ( qbt_base PRIVATE ${ Carbon_LIBRARY } ${ IOKit_LIBRARY } )
endif ( APPLE )
endif ( APPLE )