Files
siren/CMakeLists.txt
Kearwood Gilbert 0bc499b917
Some checks failed
CMake on multiple platforms / build (Release, cl, cl, windows-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, macos-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, clang, clang++, ubuntu-latest) (push) Has been cancelled
CMake on multiple platforms / build (Release, gcc, g++, ubuntu-latest) (push) Has been cancelled
Bump to C++23 standard.
2026-06-16 00:43:54 -07:00

45 lines
977 B
CMake

cmake_minimum_required (VERSION 3.16)
set(CMAKE_CXX_STANDARD 23)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
project(siren)
set(PUBLIC_HEADERS
include/dsp.h
include/siren.h
)
set(SRCS
src/dsp_slow.cpp
src/dsp_vdsp.cpp
)
IF(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-deprecated-declarations -Wno-c++11-extensions")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated -Wno-deprecated-declarations -Wno-c++11-extensions")
FIND_LIBRARY(ACCELERATE_LIBRARY Accelerate)
MARK_AS_ADVANCED (ACCELERATE_LIBRARY)
SET(EXTRA_LIBS ${ACCELERATE_LIBRARY})
ENDIF (APPLE)
add_library(siren ${SRCS} ${PUBLIC_HEADERS})
TARGET_LINK_LIBRARIES( siren ${EXTRA_LIBS} )
SET_TARGET_PROPERTIES(
siren
PROPERTIES
VERSION 0.1.0
SOVERSION 0.1
PUBLIC_HEADER "${PUBLIC_HEADERS}"
)
install(
TARGETS siren
LIBRARY
DESTINATION lib
ARCHIVE
DESTINATION lib
PUBLIC_HEADER
DESTINATION include/siren
)