aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-07-02 15:39:53 +0200
committerLoïc Collignon <loic.collignon@iot.bzh>2018-07-10 19:21:41 +0200
commit9b2c0778e6b83591cbad1d9c76cbcad2186512d9 (patch)
treed2a8b3901baa068aae3b24e8e61cdddccaa4c50b
parentc56b75f6511015edb4417df81d97aa6181e5480e (diff)
Better Qt5 handling
Make use of the correct cmake options to handle Qt correctly. Change-Id: Ic7c65cb0a51085ec8cb1c0e2e98785a2d41ca0a8 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
-rw-r--r--app/CMakeLists.txt17
1 files changed, 9 insertions, 8 deletions
diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt
index 25da122..9aacf16 100644
--- a/app/CMakeLists.txt
+++ b/app/CMakeLists.txt
@@ -18,10 +18,11 @@
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 14)
+set(CMAKE_CXX_STANDARD_REQUIRED ON)
-find_package(Qt5 COMPONENTS Core Gui QuickControls2 WebSockets QuickWidgets REQUIRED)
-qt5_add_resources(RESOURCES Mixer.qrc)
+find_package(Qt5 COMPONENTS Core Quick QuickControls2 WebSockets REQUIRED)
PROJECT_TARGET_ADD(mixer)
@@ -32,9 +33,9 @@ if(NATIVE_BUILD)
endif()
add_executable(mixer
- main.cpp
- mixer.cpp
- ${RESOURCES}
+ "main.cpp"
+ "mixer.cpp"
+ "Mixer.qrc"
)
set_target_properties(mixer PROPERTIES
@@ -47,10 +48,10 @@ set_target_properties(mixer PROPERTIES
)
target_link_libraries(mixer
+ Qt5::Core
+ Qt5::Quick
Qt5::QuickControls2
Qt5::WebSockets
- homescreen
- qtWindowmanagerWrapper
json-c
afb-helpers
)
@@ -58,6 +59,6 @@ target_link_libraries(mixer
if(NOT NATIVE_BUILD)
target_link_libraries(mixer
homescreen
- qtWindowmanagerWrapper
+ qtWindowmanager
)
endif()