mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 14:30:57 +00:00
493ceb7ade
Dynamically check for sys/types.h and pid_t in wine config.h Use TARGET_xxx defines instead of _X86_ as this is undefined by GCC Add some sense in include directories management by using interface libraries
23 lines
664 B
CMake
23 lines
664 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"
|
|
add_target_compile_flags(xml2sdb "/wd4244")
|
|
else()
|
|
add_target_compile_flags(xml2sdb "-fshort-wchar")
|
|
endif()
|