-
Notifications
You must be signed in to change notification settings - Fork 5
/
CMakeLists.txt
66 lines (54 loc) · 1.73 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
cmake_minimum_required(VERSION 2.8)
project(split700 C CXX)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if(MSVC)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
option(STATIC_CRT "Use static CRT libraries" OFF)
# Rewrite command line flags to use /MT if necessary
if(STATIC_CRT)
foreach(flag_var
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
if(${flag_var} MATCHES "/MD")
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
endif(${flag_var} MATCHES "/MD")
endforeach(flag_var)
endif()
# Allow for wildcards in command-line path arguments
# http://msdn.microsoft.com/en-us/library/8bch7bkk.aspx
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} setargv.obj")
endif()
#============================================================================
# split700
#============================================================================
set(SPLIT700_HDRS
src/SPCFile.h
src/SPCSampDir.h
src/WavWriter.h
src/cpath.h
src/split700.h
)
set(SPLIT700_SRCS
src/SPCFile.cpp
src/SPCSampDir.cpp
src/WavWriter.cpp
src/split700.cpp
)
add_executable(split700 ${SPLIT700_SRCS} ${SPLIT700_HDRS})
#============================================================================
# brr2wav
#============================================================================
set(BRR2WAV_HDRS
src/SPCFile.h
src/SPCSampDir.h
src/WavWriter.h
src/cpath.h
)
set(BRR2WAV_SRCS
src/SPCFile.cpp
src/SPCSampDir.cpp
src/WavWriter.cpp
src/brr2wav.cpp
)
add_executable(brr2wav ${BRR2WAV_SRCS} ${BRR2WAV_HDRS})