forked from JonTheBurger/lvgl_sim_qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
39 lines (34 loc) · 909 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.10)
project(lvgl_sim_qt LANGUAGES C CXX)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
if (CMAKE_C_COMPILER_ID MATCHES GNU)
add_compile_options(-Wall -Wextra -pedantic)
endif()
endif()
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(QT NAMES Qt6 Qt5 COMPONENTS Core REQUIRED)
find_package(Qt${QT_VERSION_MAJOR}
COMPONENTS
Quick
Widgets
REQUIRED
)
add_compile_definitions(
LV_USE_DEMO_BENCHMARK=1
LV_USE_DEMO_KEYPAD_AND_ENCODER=1
LV_USE_DEMO_MUSIC=1
LV_USE_DEMO_STRESS=1
LV_USE_DEMO_WIDGETS=1
)
add_subdirectory(external EXCLUDE_FROM_ALL)
add_subdirectory(lvgl_qt)
add_subdirectory(lvgl_qt_quick)
add_subdirectory(lvgl_qt_widgets)