forked from BeneSim/BeneOverlay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
42 lines (32 loc) · 1.02 KB
/
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
40
41
42
cmake_minimum_required(VERSION 3.0.0)
project(BeneOverlay)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5 COMPONENTS Qml Widgets Quick WebChannel WebSockets REQUIRED)
set(SRC_FILES
src/dataref.cpp
src/datarefmanager.cpp
#src/flightsimconnector.cpp
src/main.cpp
src/updatemanager.cpp
src/websocketclientwrapper.cpp
src/websockettransport.cpp
)
set(RCC_FILES
data_resources.qrc
qml/qml_resources.qrc
)
set(HDR_FILES
include/dataref.h
include/datarefmanager.h
include/updatemanager.h
include/version.h
include/websocketclientwrapper.h
include/websockettransport.h
)
add_executable(BeneOverlay ${SRC_FILES} ${HDR_FILES} ${RCC_FILES})
target_include_directories(BeneOverlay PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_link_libraries(BeneOverlay Qt5::Widgets Qt5::Qml Qt5::Quick Qt5::WebChannel Qt5::WebSockets)
target_compile_options(BeneOverlay PRIVATE -Wall -Wextra -Wconversion -Wsign-conversion -pedantic-errors)
add_definitions(-DTEST_MODE)