2016-12-03 14:14:06 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
|
|
|
|
2017-02-04 07:25:41 +00:00
|
|
|
include(GNUInstallDirs)
|
|
|
|
|
2016-12-03 14:14:06 +00:00
|
|
|
project(FGQCanvas)
|
|
|
|
|
2017-11-02 17:20:42 +00:00
|
|
|
find_package(Qt5 5.4 COMPONENTS Widgets WebSockets Gui Quick)
|
2016-12-21 11:14:50 +00:00
|
|
|
|
2017-11-02 17:20:42 +00:00
|
|
|
if (NOT Qt5WebSockets_FOUND OR NOT Qt5Quick_FOUND)
|
|
|
|
message(WARNING "FGQCanvas utility requested, but QtWebSockets not found")
|
|
|
|
message(STATUS "Check you have the development package for Qt5 WebSockets installed")
|
2016-12-21 11:14:50 +00:00
|
|
|
return()
|
|
|
|
endif()
|
2016-12-03 14:14:06 +00:00
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
main.cpp
|
|
|
|
localprop.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
localprop.h
|
2016-12-03 14:14:06 +00:00
|
|
|
fgcanvaselement.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
fgcanvaselement.h
|
2016-12-03 14:14:06 +00:00
|
|
|
fgcanvasgroup.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
fgcanvasgroup.h
|
2016-12-03 14:14:06 +00:00
|
|
|
fgcanvaspaintcontext.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
fgcanvaspaintcontext.h
|
2016-12-03 14:14:06 +00:00
|
|
|
fgcanvaspath.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
fgcanvaspath.h
|
2016-12-03 14:14:06 +00:00
|
|
|
fgcanvastext.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
fgcanvastext.h
|
2016-12-03 14:14:06 +00:00
|
|
|
fgqcanvasimage.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
fgqcanvasimage.h
|
2016-12-03 14:14:06 +00:00
|
|
|
fgqcanvasmap.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
fgqcanvasmap.h
|
2016-12-03 14:14:06 +00:00
|
|
|
canvastreemodel.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
canvastreemodel.h
|
2016-12-20 10:31:38 +00:00
|
|
|
fgqcanvasfontcache.cpp
|
|
|
|
fgqcanvasfontcache.h
|
2016-12-21 10:25:58 +00:00
|
|
|
fgqcanvasimageloader.cpp
|
|
|
|
fgqcanvasimageloader.h
|
2016-12-22 16:59:19 +00:00
|
|
|
elementdatamodel.cpp
|
|
|
|
elementdatamodel.h
|
2017-01-09 16:55:03 +00:00
|
|
|
canvasitem.cpp
|
|
|
|
canvasitem.h
|
2017-11-02 17:20:42 +00:00
|
|
|
canvasconnection.cpp
|
|
|
|
canvasconnection.h
|
|
|
|
applicationcontroller.cpp
|
|
|
|
applicationcontroller.h
|
|
|
|
canvasdisplay.cpp
|
|
|
|
canvasdisplay.h
|
2016-12-03 14:14:06 +00:00
|
|
|
)
|
|
|
|
|
2017-11-02 17:20:42 +00:00
|
|
|
qt5_add_resources(qrc_sources fgqcanvas_resources.qrc)
|
2016-12-03 14:14:06 +00:00
|
|
|
|
2017-11-02 17:20:42 +00:00
|
|
|
#qt5_wrap_ui(uic_sources temporarywidget.ui)
|
|
|
|
|
|
|
|
add_executable(fgqcanvas ${SOURCES} ${qrc_sources})
|
2016-12-03 14:14:06 +00:00
|
|
|
|
|
|
|
set_property(TARGET fgqcanvas PROPERTY AUTOMOC ON)
|
2017-11-02 17:20:42 +00:00
|
|
|
target_link_libraries(fgqcanvas Qt5::Core Qt5::Widgets Qt5::WebSockets Qt5::Quick)
|
2016-12-03 14:14:06 +00:00
|
|
|
|
|
|
|
target_include_directories(fgqcanvas PRIVATE ${PROJECT_SOURCE_DIR})
|
|
|
|
|
|
|
|
# so ui_foo.h files are found
|
|
|
|
target_include_directories(fgqcanvas PRIVATE ${PROJECT_BINARY_DIR})
|
2017-02-04 07:25:41 +00:00
|
|
|
|
2017-01-09 16:55:03 +00:00
|
|
|
target_include_directories(fgqcanvas PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
|
2017-04-21 13:30:04 +00:00
|
|
|
target_include_directories(fgqcanvas PRIVATE ${Qt5Quick_PRIVATE_INCLUDE_DIRS})
|
2017-01-09 16:55:03 +00:00
|
|
|
|
2017-02-04 07:25:41 +00:00
|
|
|
install(TARGETS fgqcanvas RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|