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