This commit brings support for compiling ReactOS with Visual Studio 2015 RC (and...
[reactos.git] / reactos / tools / widl / CMakeLists.txt
1
2 if(MSVC)
3 if(MSVC_VERSION LESS 1900)
4 add_definitions(-Dsnprintf=_snprintf)
5
6 # Add this definition for WDK only, VS 9 doesn't like that
7 if(DEFINED ENV{DDKBUILDENV})
8 add_definitions(-Dvsnprintf=_vsnprintf)
9 endif()
10 endif()
11
12 list(APPEND SOURCE getopt.c)
13 endif()
14
15 list(APPEND SOURCE
16 client.c
17 expr.c
18 hash.c
19 header.c
20 proxy.c
21 register.c
22 server.c
23 typegen.c
24 typelib.c
25 typetree.c
26 utils.c
27 widl.c
28 write_msft.c
29 parser.yy.c
30 parser.tab.c
31 port/mkstemps.c)
32
33 # Taken from widl.rbuild
34 add_definitions(-DINT16=SHORT)
35 add_executable(widl ${SOURCE})
36 target_link_libraries(widl wpphost)