3e017f53378f4f4c29ca51c82733932d481adacf
[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)
15 include_directories(./include/reactos/wine)
16
17 add_subdirectory(tools)
18 add_subdirectory(include/psdk)
19
20 else()
21
22 add_definitions(-DDBG=1)
23 add_definitions(-D_SEH_ENABLE_TRACE)
24 add_definitions(-DKDBG=1)
25 add_definitions(-DWINVER=0x502)
26 add_definitions(-D_WIN32_IE=0x600)
27 add_definitions(-D_WIN32_WINNT=0x502)
28 add_definitions(-D_WIN32_WINDOWS=0x502)
29 add_definitions(-D_SETUPAPI_VER=0x502)
30 add_definitions(-D_M_IX86)
31 add_definitions(-D_X86_)
32 add_definitions(-D__i386__)
33 add_definitions(-DUSE_COMPILER_EXCEPTIONS)
34 add_definitions(-D_USE_32BIT_TIME_T)
35
36 include_directories(./include)
37 include_directories(./include/psdk)
38 include_directories(./include/crt)
39 include_directories(./include/crt/mingw32)
40 include_directories(./include/ddk)
41 include_directories(./include/ndk)
42 include_directories(./include/reactos)
43 include_directories(./include/reactos/libs)
44
45 add_subdirectory(lib)
46
47 endif()