2020-01-02 23:46:35 -05:00
|
|
|
cmake_minimum_required(VERSION 2.6)
|
|
|
|
if (UNIX OR MINGW)
|
|
|
|
add_definitions(-O3)
|
2020-01-03 07:45:24 -05:00
|
|
|
if (APPLE)
|
|
|
|
add_definitions(-D_DARWIN_C_SOURCE)
|
|
|
|
endif()
|
2020-01-02 23:46:35 -05:00
|
|
|
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
|
|
|
|
)
|