This repository was archived by the owner on Mar 28, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 284
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
87 lines (70 loc) · 1.64 KB
/
CMakeLists.txt
File metadata and controls
87 lines (70 loc) · 1.64 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
project(echoprint-codegen)
cmake_minimum_required(VERSION 2.8)
set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules )
# Stage 0 - Find dependencies
# Boost
find_package(Boost REQUIRED )
# TagLib
find_package(Taglib REQUIRED)
# Thread library ( pthreads or other )
find_package( Threads REQUIRED )
# FFMPEG
find_package( FFMPEG REQUIRED )
# ZLib
find_package( ZLIB REQUIRED )
# Add library
set ( codegen_SOURCES
src/AudioBufferInput.cxx
src/AudioStreamInput.cxx
src/Base64.cxx
src/Codegen.cxx
src/Fingerprint.cxx
src/MatrixUtility.cxx
src/SubbandAnalysis.cxx
src/Whitening.cxx
)
set ( codegen_HEADERS
src/AudioBufferInput.h
src/AudioStreamInput.h
src/Base64.h
src/Codegen.h
src/Fingerprint.h
src/MatrixUtility.h
src/SubbandAnalysis.h
src/Whitening.h
)
include_directories(
${Boost_INCLUDE_DIRS}
${CMAKE_CURRENT_SOURCE_DIR}/src
${TAGLIB_INCLUDE_DIRS}
${FFMPEG_INCLUDE_DIRS}
${ZLIB_INCLUDE_DIRS}
)
add_library( codegen SHARED ${codegen_SOURCES} )
target_link_libraries( codegen
${CMAKE_THREAD_LIBS_INIT}
${ZLIB_LIBRARIES}
)
# Add executable
set( echoprint_codegen_SOURCES
src/Metadata.cxx
src/main.cxx
)
add_executable( echoprint-codegen
${echoprint_codegen_SOURCES}
)
target_link_libraries(
echoprint-codegen
${TAGLIB_LIBRARIES}
${FFMPEG_LIBRARIES}
codegen
)
# Install library and executable
install( TARGETS echoprint-codegen
RUNTIME DESTINATION bin
)
install( TARGETS codegen
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
)