2022-09-28 21:49:30 +00:00
|
|
|
list(APPEND TARGET_HEADERS
|
2022-09-29 15:59:07 +00:00
|
|
|
MainWindow.h)
|
2022-09-28 21:49:30 +00:00
|
|
|
|
|
|
|
list(APPEND TARGET_SOURCES
|
|
|
|
MainWindow.cpp
|
2022-09-29 15:59:07 +00:00
|
|
|
main.cpp)
|
|
|
|
|
|
|
|
set(TARGET_NAME qvgviewer)
|
2022-09-28 21:49:30 +00:00
|
|
|
|
|
|
|
#CONFIG += autoqvg
|
|
|
|
|
2022-09-29 15:59:07 +00:00
|
|
|
option(autoqvg "enable automatic qvg commpilation" OFF)
|
2022-09-28 21:49:30 +00:00
|
|
|
|
2022-09-29 15:59:07 +00:00
|
|
|
if(autoqvg)
|
|
|
|
# CONFIG += qskqvg # TODO why?
|
|
|
|
|
|
|
|
list(APPEND TARGET_RESSOURCES
|
|
|
|
qvgviewer.qrc)
|
2022-09-28 21:49:30 +00:00
|
|
|
|
2022-09-29 15:59:07 +00:00
|
|
|
list(APPEND SVGSOURCES
|
2022-09-28 21:49:30 +00:00
|
|
|
svg/01.01.10.svg
|
|
|
|
svg/01.03.04q.svg
|
|
|
|
svg/01.08.05q.svg
|
2022-09-29 15:59:07 +00:00
|
|
|
svg/01.25.18.svg)
|
|
|
|
else()
|
|
|
|
# When cross compiling we need to have the svg2qvg tool being
|
|
|
|
# compiled for the build environment - not for the one of the target.
|
|
|
|
# So we better have precompiled qvg files in the repository to
|
|
|
|
# make the build process much easier
|
|
|
|
list(APPEND TARGET_RESSOURCES
|
|
|
|
qvgviewer.qrc)
|
|
|
|
endif()
|
2022-09-28 21:49:30 +00:00
|
|
|
|
2022-09-29 15:59:07 +00:00
|
|
|
add_executable(${TARGET_NAME} ${TARGET_SOURCES} ${TARGET_HEADERS} ${TARGET_RESSOURCES})
|
2022-09-28 21:49:30 +00:00
|
|
|
|
2022-09-29 15:59:07 +00:00
|
|
|
set_target_properties(${TARGET_NAME}
|
|
|
|
PROPERTIES
|
|
|
|
AUTOMOC ON
|
|
|
|
AUTORCC ON
|
|
|
|
FOLDER examples)
|
|
|
|
|
|
|
|
target_link_libraries(${TARGET_NAME}
|
|
|
|
PRIVATE
|
|
|
|
qskinny
|
|
|
|
qsktestsupport)
|