xref: /reactos/sdk/tools/xml2sdb/CMakeLists.txt (revision 7eead935)
1
2add_definitions(-DSDBWRITE_HOSTTOOL=1)
3
4list(APPEND SOURCE
5    main.cpp
6    tinyxml2.cpp
7    xml2sdb.cpp
8    xml2sdb.h
9    ${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp/sdbwrite.c
10    ${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp/sdbstringtable.c)
11
12include_directories(
13    ${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp
14    ${REACTOS_SOURCE_DIR}/sdk/include/reactos/appcompat)
15add_host_tool(xml2sdb ${SOURCE})
16
17if(MSVC)
18    # Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
19    add_target_compile_flags(xml2sdb "/wd4244")
20else()
21    add_target_compile_flags(xml2sdb "-fshort-wchar")
22endif()
23