7856d1900bf5821287068019fc1a7a09c98092ce
[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_definitions(-D_swprintf=swprintf)
27 add_target_compile_flags(inflibhost "-Wpointer-arith -Wwrite-strings")
28 endif()
29 target_link_libraries(inflibhost unicode)
30 endif()