forked from osmandapp/OsmAnd-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
executable file
·31 lines (26 loc) · 1.32 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
cmake_minimum_required(VERSION 2.8.7 FATAL_ERROR)
# OsmAnd Core Root
set(OSMAND_CORE_ROOT "${CMAKE_CURRENT_LIST_DIR}")
# Output root
set(OSMAND_CORE_OR "${OSMAND_CORE_ROOT}/binaries/${CMAKE_TARGET_OS}/${CMAKE_TARGET_CPU_ARCH}/${CMAKE_TARGET_CPU_NAME}/${CMAKE_BUILD_TYPE}")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${OSMAND_CORE_OR}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${OSMAND_CORE_OR}")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${OSMAND_CORE_OR}")
# Include CPU specific settings
if(DEFINED CMAKE_TARGET_CPU_NAME)
include("./build-tools/cpu-specific/${CMAKE_TARGET_CPU_NAME}.cmake")
endif()
# Externals
add_subdirectory("${OSMAND_CORE_ROOT}/externals/zlib" "./externals/zlib") # zlibstatic
add_subdirectory("${OSMAND_CORE_ROOT}/externals/giflib" "./externals/giflib")
add_subdirectory("${OSMAND_CORE_ROOT}/externals/jpeg" "./externals/jpeg")
add_subdirectory("${OSMAND_CORE_ROOT}/externals/libpng" "./externals/libpng")
add_subdirectory("${OSMAND_CORE_ROOT}/externals/freetype" "./externals/freetype")
add_subdirectory("${OSMAND_CORE_ROOT}/externals/expat" "./externals/expat")
add_subdirectory("${OSMAND_CORE_ROOT}/externals/libskia" "./externals/libskia")
add_subdirectory("${OSMAND_CORE_ROOT}/externals/protobuf" "./externals/protobuf")
# OsmAnd Core
add_subdirectory("${OSMAND_CORE_ROOT}/osmand" "./osmand")
add_dependencies(osmand
zlibstatic
)