7d4e8433c1
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.
20 lines
358 B
CMake
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
|
|
)
|