File: CMakeLists.txt

package info (click to toggle)
libmpc 2:0.1~r495-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 1,316 kB
  • ctags: 1,434
  • sloc: ansic: 13,302; makefile: 174
file content (37 lines) | stat: -rw-r--r-- 903 bytes parent folder | download
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
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
cmake_policy(SET CMP0003 NEW)
include(TestBigEndian)

project(libmpc C)

set(CMAKE_VERBOSE_MAKEFILE false)
TEST_BIG_ENDIAN(MPC_ENDIANNESS)

# Use the standard CMake flag to drive the shared object build.
if(DEFINED BUILD_SHARED_LIBS AND NOT DEFINED SHARED)
  set(SHARED ${BUILD_SHARED_LIBS})
else()
  if(WIN32)
    option(SHARED "Use shared libmpcdec" OFF)
  else(WIN32)
    option(SHARED "Use shared libmpcdec" ON)
  endif(WIN32)
endif()

add_definitions(-DFAST_MATH -DCVD_FASTLOG)

if(NOT MSVC)
  set(CMAKE_C_FLAGS "-O3 -Wall -fomit-frame-pointer -pipe")
endif(NOT MSVC)

add_subdirectory(libmpcdec)
add_subdirectory(libmpcpsy)
add_subdirectory(libmpcenc)
add_subdirectory(libwavformat)
add_subdirectory(mpcgain)
add_subdirectory(mpcdec)
add_subdirectory(mpcenc)
add_subdirectory(mpc2sv8)
add_subdirectory(mpccut)
add_subdirectory(mpcchap)
add_subdirectory(wavcmp)