2011-05-16 13:12:07 +00:00
|
|
|
|
|
|
|
list(APPEND GLOBAL_FILES
|
|
|
|
infcore.c
|
|
|
|
infget.c
|
|
|
|
infput.c)
|
|
|
|
|
|
|
|
if(CMAKE_CROSSCOMPILING)
|
2011-06-15 10:30:03 +00:00
|
|
|
list(APPEND SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
infrosgen.c
|
|
|
|
infrosget.c
|
|
|
|
infrosput.c)
|
|
|
|
|
|
|
|
add_library(inflib ${GLOBAL_FILES} ${SOURCE})
|
2011-07-28 16:23:25 +00:00
|
|
|
add_pch(inflib inflib.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
add_dependencies(inflib psdk)
|
|
|
|
else()
|
2011-06-15 10:30:03 +00:00
|
|
|
list(APPEND SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
infhostgen.c
|
|
|
|
infhostget.c
|
|
|
|
infhostput.c
|
|
|
|
infhostrtl.c)
|
|
|
|
|
2011-12-31 17:29:42 +00:00
|
|
|
add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST -D_CRT_NON_CONFORMING_SWPRINTFS)
|
|
|
|
add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
|
2011-05-16 13:12:07 +00:00
|
|
|
if(NOT MSVC)
|
2011-12-31 17:29:42 +00:00
|
|
|
add_target_compile_flags(inflibhost "-Wpointer-arith -Wwrite-strings")
|
2011-05-16 13:12:07 +00:00
|
|
|
endif()
|
|
|
|
target_link_libraries(inflibhost unicode)
|
|
|
|
endif()
|