reactos/sdk/tools/mkhive/CMakeLists.txt
Jérôme Gardou 493ceb7ade [CMAKE] Fix host tools build on x86-64 mingw
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
2019-11-15 16:22:06 +01:00

18 lines
419 B
CMake

list(APPEND SOURCE
binhive.c
cmi.c
mkhive.c
reginf.c
registry.c
rtl.c)
add_host_tool(mkhive ${SOURCE})
target_include_directories(mkhive PRIVATE ${REACTOS_SOURCE_DIR}/sdk/lib/rtl)
target_compile_definitions(mkhive PRIVATE -DMKHIVE_HOST)
if(NOT MSVC)
add_target_compile_flags(mkhive "-fshort-wchar")
endif()
target_link_libraries(mkhive PRIVATE host_includes unicode cmlibhost inflibhost)