--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR) +cmake_minimum_required(VERSION 3.16...3.31) project(libebur128 C) option(BUILD_SHARED_LIBS --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -1,4 +1,3 @@ -cmake_minimum_required(VERSION 2.8.12) set(ENABLE_TESTS OFF CACHE BOOL "Build test binaries, needs libsndfile") set(ENABLE_FUZZER OFF CACHE BOOL "Build fuzzer binary") @@ -10,8 +9,8 @@ if(ENABLE_TESTS) include_directories(${EBUR128_INCLUDE_DIR}) include_directories(SYSTEM ${SNDFILE_INCLUDE_DIRS}) - add_executable(r128-test-library tests) - add_executable(minimal-example minimal-example) + add_executable(r128-test-library tests.c) + add_executable(minimal-example minimal-example.c) set_property(TARGET r128-test-library APPEND_STRING PROPERTY COMPILE_FLAGS " ${SNDFILE_CFLAGS}") set_property(TARGET minimal-example APPEND_STRING PROPERTY