[CMAKE]
[reactos.git] / lib / newinflib / CMakeLists.txt
1
2 SET(GLOBAL_FILES infcore.c infget.c infput.c)
3
4 if(CMAKE_CROSSCOMPILING)
5
6 file(GLOB_RECURSE SOURCE "infros*.c")
7 add_library(newinflib ${GLOBAL_FILES} ${SOURCE})
8 add_dependencies(newinflib psdk)
9
10 else()
11
12 file(GLOB_RECURSE SOURCE "infhost*.c")
13
14 add_definitions(-DWINE_UNICODE_API= -D__NO_CTYPE_INLINES -DINFLIB_HOST -DUSE_HOST_WCSFUNCS)
15 add_definitions(-Wpointer-arith -Wwrite-strings)
16 add_library(newinflibhost ${GLOBAL_FILES} ${SOURCE})
17 target_link_libraries(newinflibhost unicode)
18
19 endif()
20