Add CPropertyPageImpl that allows us to make property pages object oriented
[reactos.git] / sdk / tools / wpp / CMakeLists.txt
1
2 if(MSVC)
3 if(MSVC_VERSION LESS 1900)
4 add_definitions(
5 -Dsnprintf=_snprintf
6 -Dstrtoull=_strtoui64
7 -Dstrtoll=_strtoi64)
8
9 # Add this definition for WDK only, VS 9 doesn't like that
10 if(DEFINED ENV{DDKBUILDENV})
11 add_definitions(-Dvsnprintf=_vsnprintf)
12 endif()
13 endif()
14 endif()
15
16 if(CMAKE_CROSSCOMPILING)
17 add_definitions(
18 -D_DLL -D__USE_CRTIMP
19 -D__NO_ISOCEXT
20 -Dstrtoull=_strtoui64
21 -Dstrtoll=_strtoi64
22 -Dopen=_open
23 -Dclose=_close)
24
25 include_directories(${REACTOS_SOURCE_DIR}/sdk/include/reactos/wine)
26 endif()
27
28 list(APPEND SOURCE
29 preproc.c
30 wpp.c
31 ppl.yy.c
32 ppy.tab.c)
33
34 if(CMAKE_CROSSCOMPILING)
35 add_library(wpp ${SOURCE})
36 else()
37 add_library(wpphost ${SOURCE})
38 endif()