2020-05-10 12:18:28 -04:00
|
|
|
cmake_minimum_required (VERSION 3.12.4)
|
2016-11-07 17:15:07 -05:00
|
|
|
project(Cuberite)
|
|
|
|
|
|
|
|
# Set up Android parameters
|
|
|
|
set(ANDROID TRUE)
|
|
|
|
set(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
|
|
|
|
|
|
|
|
# We're crosscompiling for Android
|
|
|
|
set(NO_NATIVE_OPTIMIZATION TRUE)
|
|
|
|
|
|
|
|
# Build the rest of the server
|
|
|
|
add_subdirectory(../ Cuberite)
|
2020-05-10 12:18:28 -04:00
|
|
|
|
|
|
|
# Strip debug symbols to reduce binary size
|
|
|
|
set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES LINK_FLAGS_RELEASE -s)
|