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)
|
|
|
|
|
|
|
|
project(FGQCanvas)
|
|
|
|
|
2016-12-19 17:54:37 +00:00
|
|
|
find_package(Qt5 5.3 REQUIRED COMPONENTS Widgets WebSockets)
|
2016-12-03 14:14:06 +00:00
|
|
|
|
|
|
|
set(SOURCES
|
|
|
|
temporarywidget.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
temporarywidget.h
|
2016-12-03 14:14:06 +00:00
|
|
|
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
|
|
|
fgcanvaswidget.cpp
|
2016-12-18 16:04:05 +00:00
|
|
|
fgcanvaswidget.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-03 14:14:06 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
qt5_wrap_ui(uic_sources temporarywidget.ui)
|
|
|
|
|
|
|
|
add_executable(fgqcanvas ${SOURCES} ${uic_sources})
|
|
|
|
|
|
|
|
set_property(TARGET fgqcanvas PROPERTY AUTOMOC ON)
|
|
|
|
target_link_libraries(fgqcanvas Qt5::Core Qt5::Widgets Qt5::WebSockets)
|
|
|
|
|
|
|
|
target_include_directories(fgqcanvas PRIVATE ${PROJECT_SOURCE_DIR})
|
|
|
|
|
|
|
|
# so ui_foo.h files are found
|
|
|
|
target_include_directories(fgqcanvas PRIVATE ${PROJECT_BINARY_DIR})
|