2008-09-19 02:44:52 +12:00
|
|
|
# (c) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
2020-10-27 01:21:43 +13:00
|
|
|
# vim: set ts=4 sw=4 et :
|
2008-09-19 02:44:52 +12:00
|
|
|
|
|
|
|
project(QZint)
|
|
|
|
|
2008-09-26 23:39:06 +12:00
|
|
|
include_directories(BEFORE "${CMAKE_SOURCE_DIR}/backend" )
|
2008-09-19 02:44:52 +12:00
|
|
|
|
|
|
|
set(QZint_SRCS qzint.cpp)
|
2020-10-27 01:21:43 +13:00
|
|
|
|
|
|
|
if(USE_QT6)
|
|
|
|
qt6_wrap_cpp(QZint_SRCS qzint.h)
|
|
|
|
else()
|
|
|
|
qt5_wrap_cpp(QZint_SRCS qzint.h)
|
|
|
|
endif()
|
2008-09-19 02:44:52 +12:00
|
|
|
|
|
|
|
add_library(QZint SHARED ${QZint_SRCS})
|
|
|
|
|
2020-10-27 01:21:43 +13:00
|
|
|
set_target_properties(QZint PROPERTIES SOVERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}"
|
2009-08-11 06:39:32 +12:00
|
|
|
VERSION ${ZINT_VERSION})
|
2008-09-19 02:44:52 +12:00
|
|
|
|
|
|
|
add_dependencies(QZint zint)
|
|
|
|
|
2008-09-26 23:39:06 +12:00
|
|
|
link_directories( "${CMAKE_BINARY_DIR}/backend" )
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2020-10-27 01:21:43 +13:00
|
|
|
if(USE_QT6)
|
|
|
|
target_link_libraries(QZint zint Qt6::Widgets Qt6::Gui)
|
|
|
|
else()
|
|
|
|
target_link_libraries(QZint zint Qt5::Widgets Qt5::Gui)
|
|
|
|
endif()
|
2008-09-19 02:44:52 +12:00
|
|
|
|
2008-09-24 21:00:44 +12:00
|
|
|
install(TARGETS QZint ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
|
|
|
install(FILES qzint.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|