[CMAKE]
[reactos.git] / lib / inflib / 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(inflib ${GLOBAL_FILES} ${SOURCE})
8 add_dependencies(inflib psdk)
9
10 else()
11
12 file(GLOB_RECURSE SOURCE "infhost*.c")
13
14 add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
15 add_definitions(-Wpointer-arith -Wconversion -Wstrict-prototypes -Wmissing-prototypes)
16 add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
17
18 endif()