2019-03-20 12:41:37 +00:00
|
|
|
# Generated from affine.pro.
|
|
|
|
|
2019-06-04 15:08:47 +00:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(affine LANGUAGES CXX)
|
2019-03-20 12:41:37 +00:00
|
|
|
|
2019-06-04 15:08:47 +00:00
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set(CMAKE_AUTORCC ON)
|
|
|
|
set(CMAKE_AUTOUIC ON)
|
|
|
|
|
2020-07-07 13:24:45 +00:00
|
|
|
if(NOT DEFINED INSTALL_EXAMPLESDIR)
|
|
|
|
set(INSTALL_EXAMPLESDIR "examples")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(INSTALL_EXAMPLEDIR "${INSTALL_EXAMPLESDIR}/widgets/painting/affine")
|
2019-06-04 15:08:47 +00:00
|
|
|
|
2020-02-04 07:15:50 +00:00
|
|
|
find_package(Qt6 COMPONENTS Core)
|
|
|
|
find_package(Qt6 COMPONENTS Gui)
|
2019-06-14 10:59:07 +00:00
|
|
|
find_package(Qt6 COMPONENTS Widgets)
|
2019-06-04 15:08:47 +00:00
|
|
|
|
2020-10-16 09:55:24 +00:00
|
|
|
qt_add_executable(affine
|
|
|
|
# special case begin
|
|
|
|
# remove files from ../shared
|
|
|
|
#../shared/arthurstyle.cpp ../shared/arthurstyle.h
|
|
|
|
#../shared/arthurwidgets.cpp ../shared/arthurwidgets.h
|
|
|
|
#../shared/hoverpoints.cpp ../shared/hoverpoints.h
|
|
|
|
# special case end
|
2019-06-04 15:08:47 +00:00
|
|
|
main.cpp
|
|
|
|
xform.cpp xform.h
|
|
|
|
)
|
2020-10-26 15:22:32 +00:00
|
|
|
set_target_properties(affine PROPERTIES
|
|
|
|
WIN32_EXECUTABLE TRUE
|
|
|
|
MACOSX_BUNDLE TRUE
|
|
|
|
)
|
2019-06-04 15:08:47 +00:00
|
|
|
target_include_directories(affine PUBLIC
|
|
|
|
../shared
|
|
|
|
)
|
2020-02-04 07:15:50 +00:00
|
|
|
|
2020-10-27 11:07:51 +00:00
|
|
|
# special case begin
|
|
|
|
if(NOT TARGET painting_shared::painting_shared)
|
|
|
|
add_subdirectory(../shared painting_shared)
|
|
|
|
endif()
|
|
|
|
# special case end
|
|
|
|
|
2019-06-04 15:08:47 +00:00
|
|
|
target_link_libraries(affine PUBLIC
|
2020-02-04 07:15:50 +00:00
|
|
|
Qt::Core
|
|
|
|
Qt::Gui
|
2019-06-04 15:08:47 +00:00
|
|
|
Qt::Widgets
|
2020-10-27 11:07:51 +00:00
|
|
|
painting_shared::painting_shared # special case
|
2019-03-20 12:41:37 +00:00
|
|
|
)
|
|
|
|
|
2020-02-04 07:15:50 +00:00
|
|
|
|
|
|
|
# Resources:
|
|
|
|
set_source_files_properties("../shared/images/button_normal_cap_left.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/button_normal_cap_left.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/button_normal_cap_right.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/button_normal_cap_right.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/button_normal_stretch.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/button_normal_stretch.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/button_pressed_cap_left.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/button_pressed_cap_left.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/button_pressed_cap_right.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/button_pressed_cap_right.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/button_pressed_stretch.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/button_pressed_stretch.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/frame_bottom.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/frame_bottom.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/frame_bottomleft.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/frame_bottomleft.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/frame_bottomright.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/frame_bottomright.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/frame_left.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/frame_left.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/frame_right.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/frame_right.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/frame_top.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/frame_top.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/frame_topleft.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/frame_topleft.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/frame_topright.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/frame_topright.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/groupframe_bottom_left.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/groupframe_bottom_left.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/groupframe_bottom_right.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/groupframe_bottom_right.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/groupframe_bottom_stretch.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/groupframe_bottom_stretch.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/groupframe_left_stretch.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/groupframe_left_stretch.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/groupframe_right_stretch.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/groupframe_right_stretch.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/groupframe_top_stretch.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/groupframe_top_stretch.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/groupframe_topleft.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/groupframe_topleft.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/groupframe_topright.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/groupframe_topright.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/line_dash_dot.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/line_dash_dot.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/line_dash_dot_dot.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/line_dash_dot_dot.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/line_dashed.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/line_dashed.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/line_dotted.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/line_dotted.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/line_solid.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/line_solid.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/radiobutton-on.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/radiobutton-on.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/radiobutton_off.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/radiobutton_off.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/radiobutton_on.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/radiobutton_on.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/slider_bar.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/slider_bar.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/slider_thumb_on.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/slider_thumb_on.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/title_cap_left.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/title_cap_left.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/title_cap_right.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/title_cap_right.png"
|
|
|
|
)
|
|
|
|
set_source_files_properties("../shared/images/title_stretch.png"
|
|
|
|
PROPERTIES QT_RESOURCE_ALIAS "images/title_stretch.png"
|
|
|
|
)
|
|
|
|
set(shared_resource_files
|
|
|
|
"images/button_normal_cap_left.png"
|
|
|
|
"images/button_normal_cap_right.png"
|
|
|
|
"images/button_normal_stretch.png"
|
|
|
|
"images/button_pressed_cap_left.png"
|
|
|
|
"images/button_pressed_cap_right.png"
|
|
|
|
"images/button_pressed_stretch.png"
|
|
|
|
"images/frame_bottom.png"
|
|
|
|
"images/frame_bottomleft.png"
|
|
|
|
"images/frame_bottomright.png"
|
|
|
|
"images/frame_left.png"
|
|
|
|
"images/frame_right.png"
|
|
|
|
"images/frame_top.png"
|
|
|
|
"images/frame_topleft.png"
|
|
|
|
"images/frame_topright.png"
|
|
|
|
"images/groupframe_bottom_left.png"
|
|
|
|
"images/groupframe_bottom_right.png"
|
|
|
|
"images/groupframe_bottom_stretch.png"
|
|
|
|
"images/groupframe_left_stretch.png"
|
|
|
|
"images/groupframe_right_stretch.png"
|
|
|
|
"images/groupframe_top_stretch.png"
|
|
|
|
"images/groupframe_topleft.png"
|
|
|
|
"images/groupframe_topright.png"
|
|
|
|
"images/line_dash_dot.png"
|
|
|
|
"images/line_dash_dot_dot.png"
|
|
|
|
"images/line_dashed.png"
|
|
|
|
"images/line_dotted.png"
|
|
|
|
"images/line_solid.png"
|
|
|
|
"images/radiobutton-on.png"
|
|
|
|
"images/radiobutton_off.png"
|
|
|
|
"images/radiobutton_on.png"
|
|
|
|
"images/slider_bar.png"
|
|
|
|
"images/slider_thumb_on.png"
|
|
|
|
"images/title_cap_left.png"
|
|
|
|
"images/title_cap_right.png"
|
|
|
|
"images/title_stretch.png"
|
|
|
|
)
|
|
|
|
|
|
|
|
qt6_add_resources(affine "shared"
|
|
|
|
PREFIX
|
|
|
|
"/res"
|
|
|
|
BASE
|
|
|
|
"../shared"
|
|
|
|
FILES
|
|
|
|
${shared_resource_files}
|
|
|
|
)
|
|
|
|
set(affine_resource_files
|
|
|
|
"bg1.jpg"
|
|
|
|
"xform.cpp"
|
|
|
|
"xform.html"
|
|
|
|
)
|
|
|
|
|
|
|
|
qt6_add_resources(affine "affine"
|
|
|
|
PREFIX
|
|
|
|
"/res/affine"
|
|
|
|
FILES
|
|
|
|
${affine_resource_files}
|
|
|
|
)
|
|
|
|
|
2020-10-27 11:07:51 +00:00
|
|
|
# special case begin
|
|
|
|
# remove files from ../shared
|
|
|
|
#if(QT_FEATURE_opengl)
|
|
|
|
#target_sources(affine PUBLIC
|
|
|
|
#../shared/fbopaintdevice.cpp ../shared/fbopaintdevice.h
|
|
|
|
#)
|
2020-02-04 07:15:50 +00:00
|
|
|
|
2020-10-27 11:07:51 +00:00
|
|
|
#target_link_libraries(affine PUBLIC
|
|
|
|
#Qt::OpenGL
|
|
|
|
#)
|
|
|
|
#endif()
|
|
|
|
# special case end
|
2020-02-04 07:15:50 +00:00
|
|
|
|
2019-06-04 15:08:47 +00:00
|
|
|
install(TARGETS affine
|
|
|
|
RUNTIME DESTINATION "${INSTALL_EXAMPLEDIR}"
|
|
|
|
BUNDLE DESTINATION "${INSTALL_EXAMPLEDIR}"
|
2019-06-12 08:21:40 +00:00
|
|
|
LIBRARY DESTINATION "${INSTALL_EXAMPLEDIR}"
|
2019-06-04 15:08:47 +00:00
|
|
|
)
|