playground compileable
This commit is contained in:
parent
ce233ccb09
commit
b7e283c35c
|
@ -39,7 +39,7 @@ add_subdirectory(support)
|
||||||
add_subdirectory(examples)
|
add_subdirectory(examples)
|
||||||
add_subdirectory(playground)
|
add_subdirectory(playground)
|
||||||
|
|
||||||
#TODO
|
#TODO add doxygen support
|
||||||
#OTHER_FILES =
|
#OTHER_FILES =
|
||||||
#doc / Doxyfile
|
#doc / Doxyfile
|
||||||
#doc/*.dox
|
#doc/*.dox
|
||||||
|
@ -47,12 +47,3 @@ add_subdirectory(playground)
|
||||||
# doc/classes/*.dox
|
# doc/classes/*.dox
|
||||||
# doc/classes/*.metadox
|
# doc/classes/*.metadox
|
||||||
# TODO
|
# TODO
|
||||||
|
|
||||||
# TODO
|
|
||||||
# qmlexport.depends = src
|
|
||||||
# inputcontext.depends = src
|
|
||||||
# skins.depends = src
|
|
||||||
# tools.depends = src
|
|
||||||
# support.depends = src skins
|
|
||||||
# examples.depends = tools support skins qmlexport
|
|
||||||
# playground.depends = tools support skins qmlexport
|
|
||||||
|
|
|
@ -85,8 +85,3 @@ target_link_libraries(${TARGET_NAME}
|
||||||
qskinny
|
qskinny
|
||||||
qsktestsupport
|
qsktestsupport
|
||||||
Qt5::Svg)
|
Qt5::Svg)
|
||||||
|
|
||||||
# TODO: examples should not use private headers
|
|
||||||
target_link_libraries(${TARGET_NAME}
|
|
||||||
PRIVATE
|
|
||||||
Qt5::QuickPrivate) # TODO why not transive by qskinny target
|
|
|
@ -1,15 +1,17 @@
|
||||||
#add_subdirectory(anchors)
|
add_subdirectory(anchors)
|
||||||
#add_subdirectory(dials)
|
add_subdirectory(dials)
|
||||||
add_subdirectory(dialogbuttons)
|
add_subdirectory(dialogbuttons)
|
||||||
#add_subdirectory(invoker)
|
add_subdirectory(invoker)
|
||||||
#add_subdirectory(inputpanel)
|
add_subdirectory(inputpanel)
|
||||||
#add_subdirectory(images)
|
add_subdirectory(images)
|
||||||
#add_subdirectory(shadows)
|
add_subdirectory(shadows)
|
||||||
|
|
||||||
if(TARGET Qt5::WebEngine) # TODO check how to add optionally
|
# if(TARGET Qt5::WebEngine) # TODO check how to add optionally
|
||||||
#add_subdirectory(webview)
|
if(TRUE)
|
||||||
|
add_subdirectory(webview)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(TARGET Qt5::QuickWidgets) # TODO check how to add optionally
|
# if(TARGET Qt5::QuickWidgets) # TODO check how to add optionally
|
||||||
#add_subdirectory(grids)
|
if(TRUE)
|
||||||
|
add_subdirectory(grids)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,21 +1,36 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
kiwi/Constraint.h
|
kiwi/Constraint.h
|
||||||
kiwi/Expression.h
|
kiwi/Expression.h
|
||||||
kiwi/Solver.h
|
kiwi/Solver.h
|
||||||
kiwi/Strength.h
|
kiwi/Strength.h
|
||||||
kiwi/Term.h
|
kiwi/Term.h
|
||||||
kiwi/Variable.h
|
kiwi/Variable.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
kiwi/Expression.cpp
|
kiwi/Expression.cpp
|
||||||
kiwi/Constraint.cpp
|
kiwi/Constraint.cpp
|
||||||
kiwi/Solver.cpp
|
kiwi/Solver.cpp)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
AnchorBox.h
|
AnchorBox.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
AnchorBox.cpp
|
AnchorBox.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME anchors)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME}
|
||||||
|
${TARGET_SOURCES}
|
||||||
|
${TARGET_HEADERS}
|
||||||
|
${TARGET_RESSOURCES})
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER playground)
|
|
@ -1,17 +1,32 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
SkinFactory.h
|
SkinFactory.h
|
||||||
Dial.h
|
Dial.h
|
||||||
DialSkinlet.h
|
DialSkinlet.h
|
||||||
Dashboard.h
|
Dashboard.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
SkinFactory.cpp
|
SkinFactory.cpp
|
||||||
Dial.cpp
|
Dial.cpp
|
||||||
DialSkinlet.cpp
|
DialSkinlet.cpp
|
||||||
Dashboard.cpp
|
Dashboard.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
list(APPEND TARGET_RESSOURCES
|
list(APPEND TARGET_RESSOURCES
|
||||||
images.qrc
|
images.qrc)
|
||||||
|
|
||||||
|
set(TARGET_NAME dials)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME}
|
||||||
|
${TARGET_SOURCES}
|
||||||
|
${TARGET_HEADERS}
|
||||||
|
${TARGET_RESSOURCES})
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER playground)
|
|
@ -1,5 +1,3 @@
|
||||||
CONFIG += qskexample
|
|
||||||
target_link_libraries(${TARGET_NAME} PRIVATE widgets quickwidgets)
|
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
GridAccessor.h
|
GridAccessor.h
|
||||||
|
@ -7,7 +5,7 @@ list(APPEND TARGET_HEADERS
|
||||||
GridWidgets.h
|
GridWidgets.h
|
||||||
GridGraphics.h
|
GridGraphics.h
|
||||||
GridQuick.h
|
GridQuick.h
|
||||||
TestBox.h
|
TestBox.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
GridAccessor.cpp
|
GridAccessor.cpp
|
||||||
|
@ -16,12 +14,30 @@ list(APPEND TARGET_SOURCES
|
||||||
GridGraphics.cpp
|
GridGraphics.cpp
|
||||||
GridQuick.cpp
|
GridQuick.cpp
|
||||||
TestBox.cpp
|
TestBox.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
linux {
|
set(TARGET_NAME grid)
|
||||||
pedantic
|
|
||||||
{
|
add_executable(${TARGET_NAME}
|
||||||
QMAKE_CXXFLAGS += -isystem $$[ QT_INSTALL_HEADERS ] / QtQuickWidgets QMAKE_CXXFLAGS +=
|
${TARGET_SOURCES}
|
||||||
-isystem $$[ QT_INSTALL_HEADERS ] / QtWidgets
|
${TARGET_HEADERS})
|
||||||
}
|
|
||||||
}
|
# TODO
|
||||||
|
#linux {
|
||||||
|
# pedantic
|
||||||
|
# {
|
||||||
|
# QMAKE_CXXFLAGS += -isystem $$[ QT_INSTALL_HEADERS ] / QtQuickWidgets QMAKE_CXXFLAGS +=
|
||||||
|
# -isystem $$[ QT_INSTALL_HEADERS ] / QtWidgets
|
||||||
|
# }
|
||||||
|
#}
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport
|
||||||
|
Qt5::QuickWidgets)
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER playground)
|
|
@ -1,15 +1,27 @@
|
||||||
CONFIG += qskexample qskqmlexport
|
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME}
|
|
||||||
PRIVATE
|
|
||||||
Qt5::QuickPrivate)
|
|
||||||
|
|
||||||
list(APPEND TARGET_RESSOURCES
|
list(APPEND TARGET_RESSOURCES
|
||||||
images.qrc
|
images.qrc)
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
Image.h
|
Image.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
Image.cpp
|
Image.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME images)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME}
|
||||||
|
${TARGET_SOURCES}
|
||||||
|
${TARGET_HEADERS}
|
||||||
|
${TARGET_RESSOURCES})
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qskqmlexport
|
||||||
|
qsktestsupport)
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER playground)
|
|
@ -1,4 +1,17 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME inputpanel)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME}
|
||||||
|
${TARGET_SOURCES})
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER playground)
|
||||||
|
|
|
@ -1,12 +1,24 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
QMAKE_MOC_OPTIONS += -nw # disable warning about missing READ
|
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
Callback.h
|
Callback.h
|
||||||
Invoker.h
|
Invoker.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
Callback.cpp
|
Callback.cpp
|
||||||
Invoker.cpp
|
Invoker.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME invoker)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME}
|
||||||
|
${TARGET_SOURCES}
|
||||||
|
${TARGET_HEADERS})
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny)
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
AUTOMOC_MOC_OPTIONS -nw
|
||||||
|
FOLDER playground)
|
|
@ -1,8 +1,22 @@
|
||||||
CONFIG += qskexample
|
|
||||||
|
|
||||||
list(APPEND TARGET_HEADERS
|
list(APPEND TARGET_HEADERS
|
||||||
ShadowedBox.h
|
ShadowedBox.h)
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
ShadowedBox.cpp
|
ShadowedBox.cpp
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME shadows)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME}
|
||||||
|
${TARGET_HEADERS}
|
||||||
|
${TARGET_SOURCES})
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport)
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER playground)
|
|
@ -1,5 +1,20 @@
|
||||||
CONFIG += qskexample
|
|
||||||
target_link_libraries(${TARGET_NAME} PRIVATE webengine webengine-private webenginecore-private core-private)
|
|
||||||
|
|
||||||
list(APPEND TARGET_SOURCES
|
list(APPEND TARGET_SOURCES
|
||||||
main.cpp
|
main.cpp)
|
||||||
|
|
||||||
|
set(TARGET_NAME webview)
|
||||||
|
|
||||||
|
add_executable(${TARGET_NAME}
|
||||||
|
${TARGET_SOURCES})
|
||||||
|
|
||||||
|
target_link_libraries(${TARGET_NAME}
|
||||||
|
PRIVATE
|
||||||
|
qskinny
|
||||||
|
qsktestsupport
|
||||||
|
Qt5::WebEngine
|
||||||
|
Qt5::WebEnginePrivate)
|
||||||
|
|
||||||
|
set_target_properties(${TARGET_NAME}
|
||||||
|
PROPERTIES
|
||||||
|
AUTOMOC ON
|
||||||
|
FOLDER playground)
|
Loading…
Reference in New Issue