all examples compileable
This commit is contained in:
parent
dcd0ecfa49
commit
83aa2170b6
|
@ -1,13 +1,13 @@
|
||||||
#c++
|
#c++
|
||||||
#add_subdirectory(desktop)
|
add_subdirectory(desktop)
|
||||||
#add_subdirectory(gallery)
|
add_subdirectory(gallery)
|
||||||
#add_subdirectory(layouts)
|
add_subdirectory(layouts)
|
||||||
#add_subdirectory(listbox)
|
add_subdirectory(listbox)
|
||||||
#add_subdirectory(messagebox)
|
add_subdirectory(messagebox)
|
||||||
#add_subdirectory(mycontrols)
|
add_subdirectory(mycontrols)
|
||||||
#add_subdirectory(qvgviewer)
|
add_subdirectory(qvgviewer)
|
||||||
#add_subdirectory(thumbnails)
|
add_subdirectory(thumbnails)
|
||||||
#add_subdirectory(tabview)
|
add_subdirectory(tabview)
|
||||||
add_subdirectory(iotdashboard)
|
add_subdirectory(iotdashboard)
|
||||||
|
|
||||||
#qml
|
#qml
|
||||||
|
@ -16,5 +16,3 @@ add_subdirectory(buttons)
|
||||||
add_subdirectory(frames)
|
add_subdirectory(frames)
|
||||||
add_subdirectory(glabels)
|
add_subdirectory(glabels)
|
||||||
add_subdirectory(messageboxQml)
|
add_subdirectory(messageboxQml)
|
||||||
|
|
||||||
# TODO
|
|
|
@ -1,4 +1,16 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME desktop)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME} ${TARGET_SOURCES})
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER examples)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
|
@ -1,50 +1,66 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
label/LabelPage.h
|
label/LabelPage.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
label/LabelPage.cpp
|
label/LabelPage.cpp)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
slider/SliderPage.h
|
slider/SliderPage.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
slider/SliderPage.cpp
|
slider/SliderPage.cpp)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
progressbar/ProgressBarPage.h
|
progressbar/ProgressBarPage.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
progressbar/ProgressBarPage.cpp
|
progressbar/ProgressBarPage.cpp)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
button/ButtonPage.h
|
button/ButtonPage.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
button/ButtonPage.cpp
|
button/ButtonPage.cpp)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
textinput/TextInputPage.h
|
textinput/TextInputPage.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
textinput/TextInputPage.cpp
|
textinput/TextInputPage.cpp)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
selector/SelectorPage.h
|
selector/SelectorPage.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
selector/SelectorPage.cpp
|
selector/SelectorPage.cpp)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
dialog/DialogPage.h
|
dialog/DialogPage.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
dialog/DialogPage.cpp
|
dialog/DialogPage.cpp)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
Page.h
|
Page.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
Page.cpp
|
Page.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME gallery)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME} ${TARGET_SOURCES} ${TARGET_HEADERS})
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER examples)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
||||||
|
|
||||||
|
target_include_directories(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
${CMAKE_CURRENT_LIST_DIR})
|
|
@ -1,7 +1,5 @@
|
||||||
CONFIG += qskexample qskqmlexport
|
|
||||||
|
|
||||||
list(APPEND TARGET_RESSOURCES
|
list(APPEND TARGET_RESSOURCES
|
||||||
layouts.qrc
|
layouts.qrc)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
TestRectangle.h
|
TestRectangle.h
|
||||||
|
@ -10,7 +8,7 @@ list(APPEND TARGET_HEADERS
|
||||||
GridLayoutPage.h
|
GridLayoutPage.h
|
||||||
LinearLayoutPage.h
|
LinearLayoutPage.h
|
||||||
DynamicConstraintsPage.h
|
DynamicConstraintsPage.h
|
||||||
StackLayoutPage.h
|
StackLayoutPage.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
TestRectangle.cpp
|
TestRectangle.cpp
|
||||||
|
@ -20,4 +18,20 @@ list(APPEND TARGET_SOURCES
|
||||||
LinearLayoutPage.cpp
|
LinearLayoutPage.cpp
|
||||||
DynamicConstraintsPage.cpp
|
DynamicConstraintsPage.cpp
|
||||||
StackLayoutPage.cpp
|
StackLayoutPage.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME layouts)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME} ${TARGET_SOURCES} ${TARGET_HEADERS} ${TARGET_RESSOURCES})
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
AUTORCC ON
|
||||||
|
FOLDER examples)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qskqmlexport
|
||||||
|
qsktestsupport)
|
|
@ -1,4 +1,17 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME listbox)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME} ${TARGET_SOURCES} ${TARGET_HEADERS} ${TARGET_RESSOURCES})
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
AUTORCC ON
|
||||||
|
FOLDER examples)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
|
@ -1,4 +1,17 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME messagebox)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME} ${TARGET_SOURCES})
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
AUTORCC ON
|
||||||
|
FOLDER examples)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
|
@ -1,12 +1,25 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
MySkin.cpp
|
MySkin.cpp
|
||||||
MyToggleButton.cpp
|
MyToggleButton.cpp
|
||||||
MyToggleButtonSkinlet.cpp
|
MyToggleButtonSkinlet.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
MyToggleButton.h
|
MyToggleButton.h
|
||||||
MyToggleButtonSkinlet.h
|
MyToggleButtonSkinlet.h
|
||||||
MySkin.h
|
MySkin.h)
|
||||||
|
|
||||||
|
set(TARGET_NAME mycontrols)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME} ${TARGET_SOURCES} ${TARGET_HEADERS})
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
AUTORCC ON
|
||||||
|
FOLDER examples)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
|
@ -1,32 +1,45 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
MainWindow.h
|
MainWindow.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
MainWindow.cpp
|
MainWindow.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME qvgviewer)
|
||||||
|
|
||||||
#CONFIG += autoqvg
|
#CONFIG += autoqvg
|
||||||
|
|
||||||
autoqvg {
|
option(autoqvg "enable automatic qvg commpilation" OFF)
|
||||||
CONFIG += qskqvg
|
|
||||||
|
|
||||||
QVGlist(APPEND TARGET_RESSOURCES
|
if(autoqvg)
|
||||||
qvgviewer.qrc
|
# CONFIG += qskqvg # TODO why?
|
||||||
|
|
||||||
SVGSOURCES =
|
list(APPEND TARGET_RESSOURCES
|
||||||
|
qvgviewer.qrc)
|
||||||
|
|
||||||
|
list(APPEND SVGSOURCES
|
||||||
svg/01.01.10.svg
|
svg/01.01.10.svg
|
||||||
svg/01.03.04q.svg
|
svg/01.03.04q.svg
|
||||||
svg/01.08.05q.svg
|
svg/01.08.05q.svg
|
||||||
svg/01.25.18.svg
|
svg/01.25.18.svg)
|
||||||
|
else()
|
||||||
} else {
|
# When cross compiling we need to have the svg2qvg tool being
|
||||||
|
# compiled for the build environment - not for the one of the target.
|
||||||
#When cross compiling we need to have the svg2qvg tool being
|
# So we better have precompiled qvg files in the repository to
|
||||||
#compiled for the build environment - not for the one of the target.
|
# make the build process much easier
|
||||||
#So we better have precompiled qvg files in the repository to
|
|
||||||
#make the build process much easier
|
|
||||||
list(APPEND TARGET_RESSOURCES
|
list(APPEND TARGET_RESSOURCES
|
||||||
qvgviewer.qrc
|
qvgviewer.qrc)
|
||||||
}
|
endif()
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME} ${TARGET_SOURCES} ${TARGET_HEADERS} ${TARGET_RESSOURCES})
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
AUTORCC ON
|
||||||
|
FOLDER examples)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
|
@ -1,12 +1,24 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
CustomSlider.h
|
CustomSlider.h
|
||||||
CustomSliderSkinlet.h
|
CustomSliderSkinlet.h
|
||||||
OtherSlider.h
|
OtherSlider.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
CustomSlider.cpp
|
CustomSlider.cpp
|
||||||
CustomSliderSkinlet.cpp
|
CustomSliderSkinlet.cpp
|
||||||
OtherSlider.cpp
|
OtherSlider.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME tabview)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME} ${TARGET_SOURCES} ${TARGET_HEADERS})
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER examples)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
|
@ -1,4 +1,16 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME thumbnails)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME} ${TARGET_SOURCES})
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER examples)
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
Loading…
Reference in New Issue