-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
46 lines (39 loc) · 1.25 KB
/
CMakeLists.txt
File metadata and controls
46 lines (39 loc) · 1.25 KB
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
43
44
45
46
cmake_minimum_required(VERSION 3.22)
# Keep Android version code as a raw value (i.e. no computation) such
# that F-Droid can parse it.
set(project_version 17)
set(android_version_code 1700)
set(CMAKE_MODULE_PATH
"${CMAKE_CURRENT_LIST_DIR}/cmake"
${CMAKE_MODULE_PATH}
)
set(BIM_PROJECT_ROOT "${CMAKE_CURRENT_LIST_DIR}")
include(bim-configuration)
if(BIM_TARGET STREQUAL "android")
project(bim
VERSION ${project_version}
LANGUAGES NONE
)
# This is an invocation of the current script for each Android
# architecture.
include(./CMakeLists-android.txt)
elseif(BIM_TARGET STREQUAL "assets")
project(bim LANGUAGES NONE)
# Just generate the assets, this is needed for Android builds and it
# uses tools from the host.
add_subdirectory(assets)
else()
# By default CMAKE_FIND_ROOT_PATH is configured to point to the host
# directory. If the host is the same than the target system, then
# the target prefix can be used to find the libraries too.
if (BIM_TARGET STREQUAL "linux")
list(PREPEND CMAKE_FIND_ROOT_PATH "${BIM_TARGET_PREFIX}")
endif()
# Everything here is executed on the environment of the target
# platform.
project(bim
VERSION ${project_version}
LANGUAGES CXX
)
include(./CMakeLists-common.txt)
endif()