minecraft-pi-reborn/mods/CMakeLists.txt
2020-09-25 12:43:53 -04:00

20 lines
506 B
CMake

cmake_minimum_required(VERSION 3.1.0)
project(mods)
add_compile_options(-Wall -Wextra -Werror)
add_subdirectory(../core core)
include_directories(../core/include)
add_library(compat SHARED src/compat.c)
target_link_libraries(compat core SDL EGL GLESv1_CM GLESv2 X11 dl)
# Force GLESv1 Link
target_link_options(compat PRIVATE "-Wl,--no-as-needed")
add_library(touch SHARED src/touch.c)
target_link_libraries(touch core dl)
add_library(readdir SHARED src/readdir.c)
target_link_libraries(readdir core)