Add fftw3 dependency

This commit is contained in:
fshstk 2022-09-30 15:57:14 +02:00
parent 55e5427ec4
commit 6aa25397de
2 changed files with 19 additions and 0 deletions

View File

@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.16) cmake_minimum_required(VERSION 3.16)
project(samplebrain VERSION 1.0 LANGUAGES CXX) project(samplebrain VERSION 1.0 LANGUAGES CXX)
include(Dependencies.cmake)
set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Set up AUTOMOC and some sensible defaults for runtime execution # Set up AUTOMOC and some sensible defaults for runtime execution

17
Dependencies.cmake Normal file
View File

@ -0,0 +1,17 @@
################################################################################
# FetchContent
################################################################################
include(FetchContent)
################################################################################
# fftw3
################################################################################
FetchContent_Declare(
fftw3
URL http://fftw.org/fftw-3.3.10.tar.gz
URL_HASH MD5=8ccbf6a5ea78a16dbc3e1306e234cc5c)
FetchContent_MakeAvailable(fftw3)
include_directories(${fftw3_SOURCE_DIR}/api)