stk-code_catmod/lib/mcpp/CMakeLists.txt
Alayan 7d4e8433c1
Require Cmake 3.6 or higher
This gets rid of deprecation warnings. Cmake 3.6 has been out for almost 8 years by now, so this requirement should not cause undue trouble to people trying to compile the game.
2024-05-21 14:06:16 +02:00

20 lines
358 B
CMake

cmake_minimum_required(VERSION 3.6.0)
if (UNIX OR MINGW)
add_definitions(-O3)
if (APPLE)
add_definitions(-D_DARWIN_C_SOURCE)
endif()
endif()
add_definitions(-DMCPP_LIB)
add_definitions(-DHAVE_CONFIG_H)
add_library(mcpp STATIC
directive.c
eval.c
expand.c
main.c
main_libmcpp.c
mbchar.c
support.c
system.c
)