minecraft-pi-docker/core/CMakeLists.txt

16 lines
424 B
CMake
Raw Normal View History

2020-09-25 16:43:53 +00:00
cmake_minimum_required(VERSION 3.1.0)
project(core)
add_compile_options(-Wall -Wextra -Werror)
2020-10-30 22:25:08 +00:00
add_library(bcm_host SHARED src/stubs/bcm_host.c)
add_library(EGL SHARED src/stubs/EGL.c)
2020-09-25 16:43:53 +00:00
2020-12-04 21:27:28 +00:00
# MCPI Links Against GLESv2 But Requires GLESv1_CM
add_library(GLESv2 SHARED src/stubs/GLESv2.c)
target_link_libraries(GLESv2 GLESv1_CM)
target_link_options(GLESv2 PRIVATE "-Wl,--no-as-needed")
2020-09-25 16:43:53 +00:00
add_executable(launcher src/launcher.c)