[CMAKE]
[reactos.git] / lib / inflib / CMakeLists.txt
1
2 set(GLOBAL_FILES infcore.c infget.c infput.c)
3
4 if(CMAKE_CROSSCOMPILING)
5 file(GLOB_RECURSE SOURCE "infros*.c")
6 add_library(inflib ${GLOBAL_FILES} ${SOURCE})
7 add_dependencies(inflib psdk)
8 else()
9 file(GLOB_RECURSE SOURCE "infhost*.c")
10 add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
11 if(NOT MSVC)
12 add_definitions(-Wpointer-arith -Wconversion -Wstrict-prototypes -Wmissing-prototypes)
13 endif()
14 add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
15 endif()