[NTOS:CM] CmpCmdHiveOpen(): Resolve FileAttributes->RootDirectory when a hive file...
[reactos.git] / sdk / lib / inflib / CMakeLists.txt
1
2 list(APPEND SOURCE
3 infcore.c
4 infget.c
5 infput.c)
6
7 if(CMAKE_CROSSCOMPILING)
8 list(APPEND SOURCE
9 infrosgen.c
10 infrosget.c
11 infrosput.c
12 inflib.h)
13
14 add_library(inflib ${SOURCE})
15 add_pch(inflib inflib.h SOURCE)
16 add_dependencies(inflib psdk)
17 else()
18 list(APPEND SOURCE
19 infhostgen.c
20 infhostget.c
21 infhostput.c
22 infhostrtl.c)
23
24 add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
25 add_library(inflibhost ${SOURCE})
26
27 if(NOT MSVC)
28 add_target_compile_flags(inflibhost "-fshort-wchar -Wpointer-arith -Wwrite-strings")
29 endif()
30
31 target_link_libraries(inflibhost unicode)
32 endif()