forked from hcs64/fsb-vorbis-extractor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (21 loc) · 873 Bytes
/
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
cmake_minimum_required(VERSION 3.0.2)
project (fsb-vorbis-extractor)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
find_package(Boost COMPONENTS system filesystem REQUIRED)
find_package(PkgConfig REQUIRED)
pkg_check_modules(Ogg REQUIRED ogg)
pkg_check_modules(Vorbis REQUIRED vorbis vorbisenc)
pkg_check_modules(GLog REQUIRED libglog)
set (GTEST_ROOT "/usr/src/gtest/")
if(EXISTS ${GTEST_ROOT})
option (FVE_BUILD_TESTS "Build fsb-vorbis-extractor tests." ON)
else()
message(WARNING "Google test library not found, use GTEST_ROOT to specifiy its location")
endif()
if (FVE_BUILD_TESTS)
enable_testing()
add_subdirectory(${GTEST_ROOT} gtest)
endif ()
include_directories(./ ${Ogg_INCLUDE_DIRS} ${Vorbis_INCLUDE_DIRS} ${GLog_INCLUDE_DIRS})
link_directories(./ ${Ogg_LIBRARY_DIRS} ${Vorbis_LIBRARY_DIRS} ${GLog_LIBRARY_DIRS})
add_subdirectory(src)