forked from jiixyj/libebur128
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
40 lines (31 loc) · 1.09 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.8.12 FATAL_ERROR)
project(libebur128 C)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR})
set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR})
include(utils)
include(GNUInstallDirs)
add_subdirectory(ebur128)
add_subdirectory(test)
to_yes_no(SUMMARY_HAS_QUEUE)
if(ENABLE_INTERNAL_QUEUE_H)
set(USE_QUEUE "using own copy of queue.h")
else()
set(USE_QUEUE "using system copy of queue.h")
endif()
##### Print status
message(STATUS "Status found / disabled --")
message(STATUS "queue.h: ${SUMMARY_HAS_QUEUE}" " ${USE_QUEUE}")
if(BUILD_STATIC_LIBS)
message(STATUS "build static library and shared library!")
else()
message(STATUS "not building static library, set BUILD_STATIC_LIBS to ON to enable")
endif()
if(NOT ${SUMMARY_HAS_QUEUE} AND NOT ${ENABLE_INTERNAL_QUEUE_H})
message(FATAL_ERROR "queue.h not found, please set ENABLE_INTERNAL_QUEUE_H to ON")
endif()
if(ENABLE_TESTS)
message(STATUS "building tests!")
else()
message(STATUS "not building tests, set ENABLE_TESTS to ON to enable")
endif()