forked from jkister/app_swift
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
63 lines (54 loc) · 2.28 KB
/
CMakeLists.txt
File metadata and controls
63 lines (54 loc) · 2.28 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
# CMakeLists.txt for app_swift -- A Cepstral Swift TTS engine interface
# TODO: this is a WIP version for using the cmake toolchain (use make toolchain instead)
#
# Copyright (C) 2021, dOpenSource
#
# POC: Tyler Moore (@dOpenSource) <tmoore@goflyball.com>
#
# This program is free software, distributed under the
# terms of the GNU General Public License Version 2. See
# the LICENSE file at the top of the source tree for more
# information.
# Project name
set(PROJECT_NAME app_swift)
project(${PROJECT_NAME})
# Toolchain standards
cmake_minimum_required(VERSION 3.6)
set(CMAKE_C_STANDARD 11)
set(CMAKE_CXX_STANDARD 11)
# Version info
set(APP_SWIFT_VERSION master)
set(CMAKE_BUILD_TYPE RELEASE)
# Set project layout
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/built CACHE PATH "Single Directory for all")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/built CACHE PATH "Single Directory for all")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/built CACHE PATH "Single Directory for all")
set(CMAKE_LIBRARY_PATH /usr/lib)
set(CMAKE_INCLUDE_PATH /usr/include)
message("\n--------------------------------\n")
message("PROJECT NAME:\t\t${PROJECT_NAME}")
message("CMAKE_SYSTEM_NAME:\t${CMAKE_SYSTEM_NAME}")
message("CMAKE_C_COMPILER:\t${CMAKE_C_COMPILER}")
message("CMAKE_CXX_COMPILER:\t${CMAKE_CXX_COMPILER}")
message("CMAKE_GENERATOR:\t${CMAKE_GENERATOR}")
message("CMAKE_BUILD_TYPE:\t${CMAKE_BUILD_TYPE}")
message("CMAKE_BINARY_DIR:\t${CMAKE_BINARY_DIR}")
message("CMAKE_MODULE_PATH:\t${CMAKE_MODULE_PATH}")
message("CMAKE_PREFIX_PATH:\t${CMAKE_PREFIX_PATH}")
message("CMAKE_LIBRARY_PATH:\t${CMAKE_LIBRARY_PATH}")
message("CMAKE_INCLUDE_PATH:\t${CMAKE_INCLUDE_PATH}")
message("\n--------------------------------\n")
# Including dirs
# DEBUG: for testing on local machine add swift/asterisk headers here
#include_directories(BEFORE /usr/local/src/swift-tts/include)
#include_directories(BEFORE /usr/local/src/astinclude/)
include_directories(BEFORE ${CMAKE_INCLUDE_PATH})
# Enable tests with CTest
#enable_testing()
# Define src files
set(SOURCE_FILES ${PROJECT_NAME}.c)
# Define build targets
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})
set_target_properties(${PROJECT_NAME}
PROPERTIES PREFIX ""
LIBRARY_OUTPUT_NAME "${PROJECT_NAME}")