-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
178 lines (160 loc) · 3.8 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
cmake_minimum_required(VERSION 2.8)
project(humlib C CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(CheckIncludeFiles)
include_directories(include)
##############################
##
## Operating-system specific settings:
##
if(APPLE)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.9" CACHE STRING "Minimum OS X deployment version")
endif()
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()
endif()
##############################
##
## Library:
##
set(SRCS
src/Convert-harmony.cpp
src/Convert-kern.cpp
src/Convert-math.cpp
src/Convert-pitch.cpp
src/Convert-rhythm.cpp
src/Convert-string.cpp
src/GridMeasure.cpp
src/GridPart.cpp
src/GridSide.cpp
src/GridSlice.cpp
src/GridStaff.cpp
src/GridVoice.cpp
src/HumAddress.cpp
src/HumGrid.cpp
src/HumHash.cpp
src/HumInstrument.cpp
src/HumNum.cpp
src/HumParamSet.cpp
src/HumRegex.cpp
src/HumTool.cpp
src/HumdrumFile.cpp
src/HumdrumFileBase-net.cpp
src/HumdrumFileBase.cpp
src/HumdrumFileContent-accidental.cpp
src/HumdrumFileContent-metlev.cpp
src/HumdrumFileContent-slur.cpp
src/HumdrumFileContent-tie.cpp
src/HumdrumFileContent-timesig.cpp
src/HumdrumFileContent.cpp
src/HumdrumFileStream.cpp
src/HumdrumFileStructure.cpp
src/HumdrumLine.cpp
src/HumdrumToken.cpp
src/MxmlEvent.cpp
src/MxmlMeasure.cpp
src/MxmlPart.cpp
src/NoteCell.cpp
src/NoteGrid.cpp
src/Options.cpp
src/tool-autobeam.cpp
src/tool-autostem.cpp
src/tool-binroll.cpp
src/tool-chord.cpp
src/tool-cint.cpp
src/tool-dissonant.cpp
src/tool-esac2hum.cpp
src/tool-extract.cpp
src/tool-filter.cpp
src/tool-hproof.cpp
src/tool-imitation.cpp
src/tool-mei2hum.cpp
src/tool-metlev.cpp
src/tool-msearch.cpp
src/tool-musicxml2hum.cpp
src/tool-myank.cpp
src/tool-recip.cpp
src/tool-restfill.cpp
src/tool-ruthfix.cpp
src/tool-satb2gs.cpp
src/tool-tassoize.cpp
src/tool-transpose.cpp
src/tool-trillspell.cpp
src/pugixml.cpp
)
set(HDRS
include/Convert.h
include/GridCommon.h
include/GridMeasure.h
include/GridPart.h
include/GridSide.h
include/GridSlice.h
include/GridStaff.h
include/GridVoice.h
include/HumAddress.h
include/HumGrid.h
include/HumHash.h
include/HumInstrument.h
include/HumNum.h
include/HumParamSet.h
include/HumRegex.h
include/HumTool.h
include/HumdrumFile.h
include/HumdrumFileBase.h
include/HumdrumFileContent.h
include/HumdrumFileStream.h
include/HumdrumFileStructure.h
include/HumdrumLine.h
include/HumdrumToken.h
include/MxmlEvent.h
include/MxmlMeasure.h
include/MxmlPart.h
include/NoteCell.h
include/NoteGrid.h
include/Options.h
include/humlib.h
include/pugiconfig.hpp
include/pugixml.hpp
include/tool-autobeam.h
include/tool-autostem.h
include/tool-binroll.h
include/tool-chord.h
include/tool-cint.h
include/tool-dissonant.h
include/tool-esac2hum.h
include/tool-extract.h
include/tool-hproof.h
include/tool-imitation.h
include/tool-mei2hum.h
include/tool-metlev.h
include/tool-msearch.h
include/tool-musicxml2hum.h
include/tool-myank.h
include/tool-recip.h
include/tool-restfill.h
include/tool-ruthfix.h
include/tool-satb2gs.h
include/tool-tassoize.h
include/tool-transpose.h
include/tool-trillspell.h
include/tool-filter.h
)
add_library(humlib STATIC ${SRCS} ${HDRS})
##############################
##
## Programs:
##
#add_executable(80off src-programs/80off.cpp)
# target_link_libraries(80off humlib)