all examples compileable
This commit is contained in:
parent
dcd0ecfa49
commit
83aa2170b6
|
@ -1,13 +1,13 @@
|
|||
#c++
|
||||
#add_subdirectory(desktop)
|
||||
#add_subdirectory(gallery)
|
||||
#add_subdirectory(layouts)
|
||||
#add_subdirectory(listbox)
|
||||
#add_subdirectory(messagebox)
|
||||
#add_subdirectory(mycontrols)
|
||||
#add_subdirectory(qvgviewer)
|
||||
#add_subdirectory(thumbnails)
|
||||
#add_subdirectory(tabview)
|
||||
add_subdirectory(desktop)
|
||||
add_subdirectory(gallery)
|
||||
add_subdirectory(layouts)
|
||||
add_subdirectory(listbox)
|
||||
add_subdirectory(messagebox)
|
||||
add_subdirectory(mycontrols)
|
||||
add_subdirectory(qvgviewer)
|
||||
add_subdirectory(thumbnails)
|
||||
add_subdirectory(tabview)
|
||||
add_subdirectory(iotdashboard)
|
||||
|
||||
#qml
|
||||
|
@ -15,6 +15,4 @@ add_subdirectory(boxes)
|
|||
add_subdirectory(buttons)
|
||||
add_subdirectory(frames)
|
||||
add_subdirectory(glabels)
|
||||
add_subdirectory(messageboxQml)
|
||||
|
||||
# TODO
|
||||
add_subdirectory(messageboxQml)
|
|
@ -1,4 +1,16 @@
|
|||
CONFIG += qskexample
|
||||
|
||||
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
|
||||
label/LabelPage.h
|
||||
label/LabelPage.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
label/LabelPage.cpp
|
||||
label/LabelPage.cpp)
|
||||
|
||||
list(APPEND TARGET_HEADERS
|
||||
slider/SliderPage.h
|
||||
slider/SliderPage.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
slider/SliderPage.cpp
|
||||
slider/SliderPage.cpp)
|
||||
|
||||
list(APPEND TARGET_HEADERS
|
||||
progressbar/ProgressBarPage.h
|
||||
progressbar/ProgressBarPage.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
progressbar/ProgressBarPage.cpp
|
||||
progressbar/ProgressBarPage.cpp)
|
||||
|
||||
list(APPEND TARGET_HEADERS
|
||||
button/ButtonPage.h
|
||||
button/ButtonPage.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
button/ButtonPage.cpp
|
||||
button/ButtonPage.cpp)
|
||||
|
||||
list(APPEND TARGET_HEADERS
|
||||
textinput/TextInputPage.h
|
||||
textinput/TextInputPage.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
textinput/TextInputPage.cpp
|
||||
textinput/TextInputPage.cpp)
|
||||
|
||||
list(APPEND TARGET_HEADERS
|
||||
selector/SelectorPage.h
|
||||
selector/SelectorPage.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
selector/SelectorPage.cpp
|
||||
selector/SelectorPage.cpp)
|
||||
|
||||
list(APPEND TARGET_HEADERS
|
||||
dialog/DialogPage.h
|
||||
dialog/DialogPage.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
dialog/DialogPage.cpp
|
||||
dialog/DialogPage.cpp)
|
||||
|
||||
list(APPEND TARGET_HEADERS
|
||||
Page.h
|
||||
Page.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
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
|
||||
layouts.qrc
|
||||
layouts.qrc)
|
||||
|
||||
list(APPEND TARGET_HEADERS
|
||||
TestRectangle.h
|
||||
|
@ -10,7 +8,7 @@ list(APPEND TARGET_HEADERS
|
|||
GridLayoutPage.h
|
||||
LinearLayoutPage.h
|
||||
DynamicConstraintsPage.h
|
||||
StackLayoutPage.h
|
||||
StackLayoutPage.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
TestRectangle.cpp
|
||||
|
@ -20,4 +18,20 @@ list(APPEND TARGET_SOURCES
|
|||
LinearLayoutPage.cpp
|
||||
DynamicConstraintsPage.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
|
||||
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
|
||||
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
|
||||
MySkin.cpp
|
||||
MyToggleButton.cpp
|
||||
MyToggleButtonSkinlet.cpp
|
||||
main.cpp
|
||||
main.cpp)
|
||||
|
||||
list(APPEND TARGET_HEADERS
|
||||
MyToggleButton.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
|
||||
MainWindow.h
|
||||
MainWindow.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
MainWindow.cpp
|
||||
main.cpp
|
||||
main.cpp)
|
||||
|
||||
set(TARGET_NAME qvgviewer)
|
||||
|
||||
#CONFIG += autoqvg
|
||||
|
||||
autoqvg {
|
||||
CONFIG += qskqvg
|
||||
option(autoqvg "enable automatic qvg commpilation" OFF)
|
||||
|
||||
QVGlist(APPEND TARGET_RESSOURCES
|
||||
qvgviewer.qrc
|
||||
if(autoqvg)
|
||||
# CONFIG += qskqvg # TODO why?
|
||||
|
||||
SVGSOURCES =
|
||||
list(APPEND TARGET_RESSOURCES
|
||||
qvgviewer.qrc)
|
||||
|
||||
list(APPEND SVGSOURCES
|
||||
svg/01.01.10.svg
|
||||
svg/01.03.04q.svg
|
||||
svg/01.08.05q.svg
|
||||
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
|
||||
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
|
||||
}
|
||||
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
|
||||
CustomSlider.h
|
||||
CustomSliderSkinlet.h
|
||||
OtherSlider.h
|
||||
OtherSlider.h)
|
||||
|
||||
list(APPEND TARGET_SOURCES
|
||||
CustomSlider.cpp
|
||||
CustomSliderSkinlet.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
|
||||
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