-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
40 lines (34 loc) · 1.03 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cmake_minimum_required (VERSION 2.6)
include(CheckIncludeFileCXX)
project(audiotoolbox CXX)
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
add_definitions(-D__STDC_CONSTANT_MACROS)
check_include_file_cxx("libavformat/avformat.h" HAVE_AVFORMAT)
if (NOT ${HAVE_AVFORMAT})
message(FATAL_ERROR "Could not find libavformat.")
endif()
check_include_file_cxx("libavcodec/avcodec.h" HAVE_AVCODEC)
if (NOT ${HAVE_AVCODEC})
message(FATAL_ERROR "Could not find libavcodec.")
endif()
check_include_file_cxx("libavutil/avutil.h" HAVE_AVUTIL)
if (NOT ${HAVE_AVUTIL})
message(FATAL_ERROR "Could not find libavutil.")
endif()
set(audiotoolbox_src
src/avobject.cpp
src/avcondition.cpp
src/avfile.cpp
src/avhistogram.cpp
src/avspectrogram.cpp
src/avsplitter.cpp
src/avmutex.cpp
src/avring.cpp
src/avthread.cpp
src/avimage.cpp
src/lodepng.cpp
src/audiotoolbox.cpp
src/main.cpp
)
add_executable(audiotoolbox ${audiotoolbox_src})
target_link_libraries(audiotoolbox avformat avcodec avutil swresample m pthread)