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})
|
|
|
|
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-06-15 18:20:05 +00:00
|
|
|
add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
|
2011-05-16 13:12:07 +00:00
|
|
|
if(NOT MSVC)
|
2011-06-13 15:31:11 +00:00
|
|
|
add_compiler_flags(-Wpointer-arith -Wwrite-strings)
|
2011-05-16 13:12:07 +00:00
|
|
|
endif()
|
|
|
|
add_library(inflibhost ${GLOBAL_FILES} ${SOURCE})
|
|
|
|
target_link_libraries(inflibhost unicode)
|
|
|
|
endif()
|