-
Notifications
You must be signed in to change notification settings - Fork 26
/
CMakeLists.txt
47 lines (38 loc) · 1.07 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
41
42
43
44
45
46
47
#
# CMake file for Juicer
#
# Phil Garner
# March 2009
#
# Version 2.4 might work, but it won't find static libraries with odd names
cmake_minimum_required(VERSION 2.6)
# CMake used to complain without this
#if(COMMAND cmake_policy)
# cmake_policy(SET CMP0003 NEW)
#endif(COMMAND cmake_policy)
# Top level project information
project(juicer)
set(VERSION 1.0)
# Find packages
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
find_package(Tracter REQUIRED)
find_package(Torch3 REQUIRED)
find_package(HTK)
find_package(JNI)
# Tracter requires these, but does not put them in the static lib
find_package(LibResample)
find_package(RtAudio)
find_package(SPTK)
# Configure other files
configure_file(Doxyfile.in Doxyfile)
add_subdirectory(src)
add_subdirectory(bin)
# This one is for binary distributions
include(CPack)
# For source, it's *much* better to use git
set(ARCHIVE_NAME ${CMAKE_PROJECT_NAME}-${VERSION})
add_custom_target(dist
COMMAND git archive --prefix=${ARCHIVE_NAME}/ HEAD
| bzip2 > ${CMAKE_BINARY_DIR}/${ARCHIVE_NAME}.tar.bz2
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)