Synchronize with trunk r58457.
[reactos.git] / lib / inflib / CMakeLists.txt
1
2 list(APPEND GLOBAL_FILES
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
13 add_library(inflib ${GLOBAL_FILES} ${SOURCE})
14 add_pch(inflib inflib.h)
15 add_dependencies(inflib psdk)
16 else()
17 list(APPEND SOURCE
18 infhostgen.c
19 infhostget.c
20 infhostput.c
21 infhostrtl.c)
22
23 add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
24 if(MSVC)
25 add_definitions(-D_CRT_NON_CONFORMING_SWPRINTFS)
26 endif()
27 add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
28 if(NOT MSVC)
29 add_target_compile_flags(inflibhost "-Wpointer-arith -Wwrite-strings")
30 endif()
31 target_link_libraries(inflibhost unicode)
32 endif()