[CMAKE]: Start supporting building the CRT.
[reactos.git] / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.8)
2 project(REACTOS)
3
4 add_definitions(-D__REACTOS__)
5
6 #-fshort-wchar
7
8 if(NOT CMAKE_CROSSCOMPILING)
9
10 add_definitions(-DTARGET_i386)
11
12 include_directories(${REACTOS_SOURCE_DIR}/tools/unicode)
13 include_directories(./include)
14 include_directories(./include/reactos/wine)
15
16 add_subdirectory(tools)
17 add_subdirectory(include/psdk)
18
19 else()
20
21 add_definitions(-DDBG=1)
22 add_definitions(-D_SEH_ENABLE_TRACE)
23 add_definitions(-DKDBG=1)
24 add_definitions(-DWINVER=0x502)
25 add_definitions(-D_WIN32_IE=0x600)
26 add_definitions(-D_WIN32_WINNT=0x502)
27 add_definitions(-D_WIN32_WINDOWS=0x502)
28 add_definitions(-D_SETUPAPI_VER=0x502)
29 add_definitions(-D_M_IX86)
30 add_definitions(-D_X86_)
31 add_definitions(-D__i386__)
32 add_definitions(-DUSE_COMPILER_EXCEPTIONS)
33 add_definitions(-D_USE_32BIT_TIME_T)
34
35 include_directories(./include)
36 include_directories(./include/psdk)
37 include_directories(./include/crt)
38 include_directories(./include/crt/mingw32)
39 include_directories(./include/ddk)
40 include_directories(./include/ndk)
41 include_directories(./include/reactos)
42 include_directories(./include/reactos/libs)
43
44 add_subdirectory(lib)
45
46 endif()