2016-07-10 16:14:39 +00:00
|
|
|
|
|
|
|
add_definitions(-DSDBWRITE_HOSTTOOL=1)
|
|
|
|
|
|
|
|
list(APPEND SOURCE
|
|
|
|
main.cpp
|
|
|
|
tinyxml2.cpp
|
|
|
|
xml2sdb.cpp
|
2017-06-26 12:45:01 +00:00
|
|
|
xml2sdb.h
|
2016-07-10 16:14:39 +00:00
|
|
|
${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp/sdbwrite.c
|
|
|
|
${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp/sdbstringtable.c)
|
|
|
|
|
2019-01-03 21:11:13 +00:00
|
|
|
include_directories(
|
|
|
|
${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp
|
|
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/appcompat)
|
2016-07-10 16:14:39 +00:00
|
|
|
add_host_tool(xml2sdb ${SOURCE})
|
2019-11-15 13:07:46 +00:00
|
|
|
target_link_libraries(xml2sdb PRIVATE host_includes)
|
2016-10-04 12:37:52 +00:00
|
|
|
|
2019-04-15 11:29:33 +00:00
|
|
|
if(MSVC)
|
|
|
|
# Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(xml2sdb PRIVATE "/wd4244")
|
2019-04-15 11:29:33 +00:00
|
|
|
else()
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(xml2sdb PRIVATE "-fshort-wchar")
|
2016-10-04 12:37:52 +00:00
|
|
|
endif()
|