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