mirror of
https://github.com/polserver/polserver
synced 2026-08-13 08:23:08 -04:00
* updated Kaitai version, use shipped CMakeList. Added imported library target for easier integration * replaced debug CMakeList with original
16 lines
599 B
CMake
16 lines
599 B
CMake
if (STRING_ENCODING_TYPE STREQUAL "ICONV")
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE -DKS_STR_ENCODING_ICONV)
|
|
elseif (STRING_ENCODING_TYPE STREQUAL "WIN32API")
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE -DKS_STR_ENCODING_WIN32API)
|
|
elseif (STRING_ENCODING_TYPE STREQUAL "NONE")
|
|
target_compile_definitions(${PROJECT_NAME} PRIVATE -DKS_STR_ENCODING_NONE)
|
|
else()
|
|
# User action requested
|
|
endif()
|
|
|
|
# Maximum warnings emission, treat all warnings as errors
|
|
if (MSVC)
|
|
add_compile_options(/W4 /WX)
|
|
else()
|
|
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
|
|
endif()
|