mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
7e069ccdb2
add_target_compile_definitions -> target_compile_definitions add_target_compile_flags -> target_compile_options add_target_include_directories -> target_include_directories
23 lines
676 B
CMake
23 lines
676 B
CMake
|
|
add_definitions(-DSDBWRITE_HOSTTOOL=1)
|
|
|
|
list(APPEND SOURCE
|
|
main.cpp
|
|
tinyxml2.cpp
|
|
xml2sdb.cpp
|
|
xml2sdb.h
|
|
${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp/sdbwrite.c
|
|
${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp/sdbstringtable.c)
|
|
|
|
include_directories(
|
|
${REACTOS_SOURCE_DIR}/dll/appcompat/apphelp
|
|
${REACTOS_SOURCE_DIR}/sdk/include/reactos/appcompat)
|
|
add_host_tool(xml2sdb ${SOURCE})
|
|
target_link_libraries(xml2sdb PRIVATE host_includes)
|
|
|
|
if(MSVC)
|
|
# Disable warning "'=': conversion from 'a' to 'b', possible loss of data"
|
|
target_compile_options(xml2sdb PRIVATE "/wd4244")
|
|
else()
|
|
target_compile_options(xml2sdb PRIVATE "-fshort-wchar")
|
|
endif()
|