[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
This commit is contained in:
Jérôme Gardou 2019-11-15 14:07:46 +01:00 committed by Jérôme Gardou
parent 15748cf03a
commit 493ceb7ade
19 changed files with 64 additions and 30 deletions

View file

@ -83,7 +83,8 @@ list(APPEND SOURCE
wctomb.c
wctype.c)
add_library(unicode ${SOURCE})
add_library(unicode STATIC ${SOURCE})
target_link_libraries(unicode PRIVATE host_includes)
if(MSVC)
# Disable warning "'<': signed/unsigned mismatch"