xref: /reactos/sdk/tools/xml2sdb/CMakeLists.txt (revision 11345aed)
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})
16target_link_libraries(xml2sdb PRIVATE host_includes)
17
18if(MSVC)
19    # Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
20    target_compile_options(xml2sdb PRIVATE "/wd4244")
21else()
22    target_compile_options(xml2sdb PRIVATE "-fshort-wchar")
23endif()
24