49 lines
1.1 KiB
CMake
49 lines
1.1 KiB
CMake
cmake_minimum_required(VERSION 3.0)
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
|
|
|
project(FGQCanvas)
|
|
|
|
find_package(Qt5 5.3 REQUIRED COMPONENTS Widgets WebSockets)
|
|
|
|
set(SOURCES
|
|
temporarywidget.cpp
|
|
temporarywidget.h
|
|
main.cpp
|
|
localprop.cpp
|
|
localprop.h
|
|
fgcanvaselement.cpp
|
|
fgcanvaselement.h
|
|
fgcanvasgroup.cpp
|
|
fgcanvasgroup.h
|
|
fgcanvaspaintcontext.cpp
|
|
fgcanvaspaintcontext.h
|
|
fgcanvaspath.cpp
|
|
fgcanvaspath.h
|
|
fgcanvastext.cpp
|
|
fgcanvastext.h
|
|
fgqcanvasimage.cpp
|
|
fgqcanvasimage.h
|
|
fgqcanvasmap.cpp
|
|
fgqcanvasmap.h
|
|
fgcanvaswidget.cpp
|
|
fgcanvaswidget.h
|
|
canvastreemodel.cpp
|
|
canvastreemodel.h
|
|
fgqcanvasfontcache.cpp
|
|
fgqcanvasfontcache.h
|
|
fgqcanvasimageloader.cpp
|
|
fgqcanvasimageloader.h
|
|
)
|
|
|
|
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})
|