65b092e11fcd9e896926690218fa330989dfc2f9
[reactos.git] / reactos / lib / newinflib / 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(NOT MSVC)
25 add_compiler_flags(-Wpointer-arith -Wwrite-strings)
26 endif()
27 add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
28 target_link_libraries(inflibhost unicode)
29 endif()