~exec64/freekdl

freekdl/CMakeLists.txt -rw-r--r-- 436 bytes
fece6d45Harry Jeffery Remove inline keyword, unrecognised by clang 7 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cmake_minimum_required(VERSION 3.20)
project(freekdl)
enable_testing()

add_library(freekdl freekdl.c)
set_property(TARGET freekdl PROPERTY C_STANDARD 90)

if (MSVC)
  target_compile_options(freekdl PRIVATE /W4 /WX)
else()
  target_compile_options(freekdl PRIVATE -Wall -Wextra -pedantic -Werror)
endif()

add_executable(freekdl_test test.c)
set_property(TARGET freekdl_test PROPERTY C_STANDARD 90)

add_test(freekdl_test freekdl_test)