-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (26 loc) · 903 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
cmake_minimum_required(VERSION 3.16)
project(Glubschauge-main LANGUAGES CXX)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(ANDROID)
set(ANDROID_NATIVE_API_LEVEL 26)
set(ANDROID_MIN_SDK_VERSION 26)
set(ANDROID_TARGET_SDK_VERSION 30)
endif()
option(BUILD_QT_APP "Build Qt App requiring Qt dev framework installed" ON)
include(CMakeDependentOption)
cmake_dependent_option(BUILD_OCV_HIGHGUI_APP "Build App using OCV's highgui module" ON
"NOT ANDROID" OFF)
# On Android, static linking of parallel projects doesn't work somehow.
# To get around this, we add them as subdirectories, which works (whyever...)
if(NOT ANDROID)
add_subdirectory(OpenCV)
add_subdirectory(GlubschLib)
endif()
if(BUILD_QT_APP)
add_subdirectory(QtApp)
endif()
if(BUILD_OCV_HIGHGUI_APP)
add_subdirectory(OCVHighGuiApp)
endif()