2011-05-16 13:12:07 +00:00
|
|
|
|
2014-02-09 21:43:42 +00:00
|
|
|
list(APPEND SOURCE
|
2011-05-16 13:12:07 +00:00
|
|
|
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
|
2014-02-09 21:43:42 +00:00
|
|
|
infrosput.c
|
|
|
|
inflib.h)
|
2011-05-16 13:12:07 +00:00
|
|
|
|
2014-02-09 21:43:42 +00:00
|
|
|
add_library(inflib ${SOURCE})
|
|
|
|
add_pch(inflib inflib.h SOURCE)
|
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)
|
|
|
|
|
2012-12-17 22:48:07 +00:00
|
|
|
add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST)
|
2014-02-09 21:43:42 +00:00
|
|
|
add_library(inflibhost ${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()
|