[CMAKE]
[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_dependencies(inflib psdk)
15 else()
16 list(APPEND SOURCE
17 infhostgen.c
18 infhostget.c
19 infhostput.c
20 infhostrtl.c)
21
22 add_definitions(-DWINE_UNICODE_API= -D__NO_CTYPE_INLINES -DINFLIB_HOST -DUSE_HOST_WCSFUNCS)
23 if(NOT MSVC)
24 add_compiler_flags(-Wpointer-arith -Wwrite-strings)
25 endif()
26 add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
27 target_link_libraries(inflibhost unicode)
28 endif()