1
0
Fork 0
flightgear/utils/fgqcanvas/CMakeLists.txt

82 lines
2 KiB
Text
Raw Normal View History

cmake_minimum_required(VERSION 3.0)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
2018-04-30 10:23:53 +00:00
# AUTOMOC/AUTOUIC on generated files policy.
if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()
include(GNUInstallDirs)
project(FGQCanvas)
find_package(Qt5 5.4 COMPONENTS Widgets WebSockets Gui Quick)
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")
return()
endif()
set(SOURCES
main.cpp
localprop.cpp
2016-12-18 16:04:05 +00:00
localprop.h
fgcanvaselement.cpp
2016-12-18 16:04:05 +00:00
fgcanvaselement.h
fgcanvasgroup.cpp
2016-12-18 16:04:05 +00:00
fgcanvasgroup.h
fgcanvaspaintcontext.cpp
2016-12-18 16:04:05 +00:00
fgcanvaspaintcontext.h
fgcanvaspath.cpp
2016-12-18 16:04:05 +00:00
fgcanvaspath.h
fgcanvastext.cpp
2016-12-18 16:04:05 +00:00
fgcanvastext.h
fgqcanvasimage.cpp
2016-12-18 16:04:05 +00:00
fgqcanvasimage.h
fgqcanvasmap.cpp
2016-12-18 16:04:05 +00:00
fgqcanvasmap.h
canvastreemodel.cpp
2016-12-18 16:04:05 +00:00
canvastreemodel.h
fgqcanvasfontcache.cpp
fgqcanvasfontcache.h
fgqcanvasimageloader.cpp
fgqcanvasimageloader.h
2016-12-22 16:59:19 +00:00
elementdatamodel.cpp
elementdatamodel.h
canvasitem.cpp
canvasitem.h
canvasconnection.cpp
canvasconnection.h
applicationcontroller.cpp
applicationcontroller.h
canvasdisplay.cpp
canvasdisplay.h
2018-06-24 10:34:28 +00:00
canvaspainteddisplay.cpp
canvaspainteddisplay.h
2018-06-24 13:11:38 +00:00
jsonutils.cpp
jsonutils.h
2019-09-07 20:40:27 +00:00
WindowData.cpp
WindowData.h
)
qt5_add_resources(qrc_sources fgqcanvas_resources.qrc)
#qt5_wrap_ui(uic_sources temporarywidget.ui)
add_executable(fgqcanvas ${SOURCES} ${qrc_sources})
set_property(TARGET fgqcanvas PROPERTY AUTOMOC ON)
target_link_libraries(fgqcanvas Qt5::Core Qt5::Widgets Qt5::WebSockets Qt5::Quick)
target_include_directories(fgqcanvas PRIVATE ${PROJECT_SOURCE_DIR})
# so ui_foo.h files are found
target_include_directories(fgqcanvas PRIVATE ${PROJECT_BINARY_DIR})
target_include_directories(fgqcanvas PRIVATE ${Qt5Gui_PRIVATE_INCLUDE_DIRS})
target_include_directories(fgqcanvas PRIVATE ${Qt5Quick_PRIVATE_INCLUDE_DIRS})
install(TARGETS fgqcanvas RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})