1
0
mirror of https://github.com/JvanKatwijk/dab-cmdline synced 2025-10-05 23:52:50 +02:00

Add MSVC support to CMakeFiles and fix paths to fftw3

This commit is contained in:
Jon Beniston
2021-04-16 20:22:18 +01:00
parent 90251ec4d3
commit caceb97bb8
2 changed files with 10 additions and 2 deletions

View File

@@ -1,6 +1,13 @@
cmake_minimum_required( VERSION 2.8.11 )
project(dab_lib)
set (objectName dab_lib)
add_definitions ( -Wall -g -std=c++11 -O3)
if (MSVC)
set(CMAKE_CXX_STANDARD 11)
add_definitions(-D_USE_MATH_DEFINES -DDAB_API_EXPORT)
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
else()
add_definitions ( -Wall -g -std=c++11 -O3 -DDAB_API_EXPORT)
endif()
# modify if you want
set (CMAKE_INSTALL_PREFIX /usr/local/)
@@ -205,6 +212,7 @@ list(INSERT CMAKE_MODULE_PATH 0 ${CMAKE_SOURCE_DIR}/cmake/Modules)
include_directories (
${FFTW_INCLUDE_DIRS}
${FFTW3F_INCLUDE_DIRS}
${PORTAUDIO_INCLUDE_DIRS}
${FAAD_INCLUDE_DIRS}
${SNDFILES_INCLUDE_DIRS}

View File

@@ -17,7 +17,7 @@ FIND_PATH(
FIND_LIBRARY(
FFTW3F_LIBRARIES
NAMES fftw3f libfftw3f
NAMES fftw3f libfftw3f libfftw3f-3
HINTS $ENV{FFTW3_DIR}/lib
${PC_FFTW3F_LIBDIR}
PATHS /usr/local/lib