f7217280154867b463c7dda19e1f3f0254cc8727
[reactos.git] / sdk / tools / CMakeLists.txt
1
2 function(add_host_tool _tool)
3 add_executable(${_tool} ${ARGN})
4 if(NEW_STYLE_BUILD)
5 set_target_properties(${_tool} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${TOOLS_FOLDER})
6 endif()
7 endfunction()
8
9 #add_executable(pefixup pefixup.c)
10
11 if(MSVC)
12 add_definitions(-D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -DHAVE_IO_H=1)
13 add_compile_flags_language("/EHsc" "CXX")
14
15 # Disable warning "conversion from 'size_t' to 'int', possible loss of data"
16 add_compile_flags("/wd4267")
17 endif()
18
19 add_host_tool(bin2c bin2c.c)
20 add_host_tool(gendib gendib/gendib.c)
21 add_host_tool(geninc geninc/geninc.c)
22 add_host_tool(mkshelllink mkshelllink/mkshelllink.c)
23 add_host_tool(obj2bin obj2bin/obj2bin.c)
24 add_host_tool(spec2def spec2def/spec2def.c)
25 add_host_tool(utf16le utf16le/utf16le.cpp)
26
27 add_subdirectory(cabman)
28 add_subdirectory(fatten)
29 add_subdirectory(hhpcomp)
30 add_subdirectory(hpp)
31 add_subdirectory(isohybrid)
32 add_subdirectory(kbdtool)
33 add_subdirectory(mkhive)
34 add_subdirectory(mkisofs)
35 add_subdirectory(unicode)
36 add_subdirectory(widl)
37 add_subdirectory(wpp)
38 add_subdirectory(xml2sdb)
39
40 if(NOT MSVC)
41 add_subdirectory(log2lines)
42 add_subdirectory(rsym)
43 endif()