2021-06-25 05:31:08 +12:00
|
|
|
# Copyright (C) 2008 by BogDan Vatra < bogdan@licentia.eu >
|
|
|
|
# Copyright (C) 2009-2021 Robin Stuart <rstuart114@gmail.com>
|
|
|
|
# vim: set ts=4 sw=4 et :
|
|
|
|
|
|
|
|
project(QZint)
|
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
set(${PROJECT_NAME}_SRCS qzint.cpp)
|
2021-06-25 05:31:08 +12:00
|
|
|
|
|
|
|
if(USE_QT6)
|
|
|
|
qt6_wrap_cpp(QZint_SRCS qzint.h)
|
|
|
|
else()
|
|
|
|
qt5_wrap_cpp(QZint_SRCS qzint.h)
|
|
|
|
endif()
|
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
add_library(${PROJECT_NAME} STATIC ${QZint_SRCS})
|
2021-06-25 05:31:08 +12:00
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION "${ZINT_VERSION_MAJOR}.${ZINT_VERSION_MINOR}"
|
2021-06-25 05:31:08 +12:00
|
|
|
VERSION ${ZINT_VERSION})
|
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_SOURCE_DIR}/backend")
|
2021-06-25 05:31:08 +12:00
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
target_link_libraries(${PROJECT_NAME} zint Qt${QT_VERSION_MAJOR}::Widgets Qt${QT_VERSION_MAJOR}::Gui)
|
2021-06-25 05:31:08 +12:00
|
|
|
|
|
|
|
|
2021-07-07 03:35:04 +12:00
|
|
|
install(TARGETS ${PROJECT_NAME} ${INSTALL_TARGETS_DEFAULT_ARGS})
|
2021-06-25 05:31:08 +12:00
|
|
|
install(FILES qzint.h DESTINATION ${INCLUDE_INSTALL_DIR} COMPONENT Devel)
|