minecraft-pi-reborn/mods/CMakeLists.txt

24 lines
581 B
CMake
Raw Normal View History

2020-09-25 16:43:53 +00:00
cmake_minimum_required(VERSION 3.1.0)
project(mods)
add_compile_options(-Wall -Wextra -Werror)
add_subdirectory(../core core)
2020-10-03 20:18:53 +00:00
include_directories(include)
add_library(core SHARED src/core.c)
target_link_libraries(core dl)
2020-09-25 16:43:53 +00:00
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(extra SHARED src/extra.c src/extra.cpp)
2020-10-01 15:08:46 +00:00
target_link_libraries(extra core dl)
2020-09-25 16:43:53 +00:00
add_library(readdir SHARED src/readdir.c)
target_link_libraries(readdir core)