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)
|
|
|
|
|
2019-04-15 11:29:33 +00:00
|
|
|
add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST -D_CRT_SECURE_NO_WARNINGS)
|
2014-02-09 21:43:42 +00:00
|
|
|
add_library(inflibhost ${SOURCE})
|
2019-11-15 13:07:46 +00:00
|
|
|
target_include_directories(inflibhost INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
2016-10-04 12:37:52 +00:00
|
|
|
|
2011-05-16 13:12:07 +00:00
|
|
|
if(NOT MSVC)
|
2020-04-16 12:59:38 +00:00
|
|
|
target_compile_options(inflibhost PRIVATE -fshort-wchar -Wpointer-arith -Wwrite-strings)
|
2011-05-16 13:12:07 +00:00
|
|
|
endif()
|
2016-10-04 12:37:52 +00:00
|
|
|
|
2019-11-15 13:07:46 +00:00
|
|
|
target_link_libraries(inflibhost PRIVATE host_includes)
|
2011-05-16 13:12:07 +00:00
|
|
|
endif()
|