1
0
cuberite-2a/android/CMakeLists.txt
Mat e053f72db8
Android build cleanup (#4734)
* Android build cleanup

* Remove unnecessary workaround

* Remove more unnecessities

* Bump cmake version
2020-05-10 16:18:28 +00:00

16 lines
402 B
CMake

cmake_minimum_required (VERSION 3.12.4)
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)
# Strip debug symbols to reduce binary size
set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES LINK_FLAGS_RELEASE -s)