chdman/cmake_subdirs/utf8proc/CMakeLists.txt
CharlesThobe f0db2ff486 CMake files now better resemble the genie scripts of MAME
Might now compile on Windows, freebsd and macOS?
2022-01-05 08:59:35 +02:00

14 lines
333 B
CMake

#utf8proc
set(utf8proc_dir ${CMAKE_SOURCE_DIR}/3rdparty/utf8proc)
add_compile_definitions(
UTF8PROC_STATIC
)
if(${CMAKE_GENERATOR} STREQUAL "Unix Makefiles" OR ${CMAKE_GENERATOR} STREQUAL "Ninja")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-strict-prototypes")
endif()
add_library(utf8proc STATIC
${utf8proc_dir}/utf8proc.c
)