[CMAKE]: CRT can now be built! Our first cross-compile target.
[reactos.git] / lib / sdk / crt / CMakeLists.txt
1
2 include_directories(.)
3 include_directories(./include)
4
5 add_definitions(-D__MINGW_IMPORT=extern)
6 add_definitions(-DUSE_MSVCRT_PREFIX)
7 add_definitions(-D_MSVCRT_LIB_)
8 add_definitions(-D_MSVCRT_)
9 add_definitions(-D_MT)
10 add_definitions(-D_CRTBLD)
11
12 file(GLOB_RECURSE SOURCE "*.c")
13 LIST(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/stdio/findgen.c)
14 LIST(REMOVE_ITEM SOURCE ${CMAKE_CURRENT_SOURCE_DIR}/string/strtold.c)
15
16 add_library(crt ${SOURCE})