23 lines
619 B
CMake
23 lines
619 B
CMake
# GNU style (GCC/Clang) compiler specific settings
|
|
|
|
if(NOT CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_C_COMPILER_ID MATCHES "^(Apple)?Clang$")
|
|
return()
|
|
endif()
|
|
|
|
enable_language(ASM)
|
|
|
|
set(ASM_SOURCES
|
|
${SOURCE_DIR}/asm/snapvector.c
|
|
${SOURCE_DIR}/asm/ftola.c
|
|
)
|
|
|
|
add_compile_options(-Wall -Wimplicit
|
|
-Wstrict-prototypes -Wformat=2 -Wformat-security
|
|
-Wstrict-aliasing=2 -Wmissing-format-attribute
|
|
-Wdisabled-optimization -Werror-implicit-function-declaration)
|
|
|
|
add_compile_options(-Wno-strict-aliasing
|
|
-Wno-format-zero-length -Wno-format-nonliteral)
|
|
|
|
set(CMAKE_INSTALL_PREFIX /opt/quake3)
|