08e569606b71418501e9ddc546d59a3b6624af27
[reactos.git] / reactos / 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 -D_CRT_NON_CONFORMING_SWPRINTFS)
24 add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
25 if(NOT MSVC)
26 add_target_compile_flags(inflibhost "-Wpointer-arith -Wwrite-strings")
27 endif()
28 target_link_libraries(inflibhost unicode)
29 endif()