-
Notifications
You must be signed in to change notification settings - Fork 8
/
CMakeLists.txt
45 lines (37 loc) · 879 Bytes
/
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
cmake_minimum_required(VERSION 3.0)
project(ymfm C CXX)
include(./cmake/macros.cmake)
header_directories(
./components/ymfm/src
./src
)
add_source_files(
./components/ymfm/src/ymfm_adpcm.cpp
./components/ymfm/src/ymfm_misc.cpp
./components/ymfm/src/ymfm_opl.cpp
./components/ymfm/src/ymfm_opm.cpp
./components/ymfm/src/ymfm_opn.cpp
./components/ymfm/src/ymfm_opq.cpp
./components/ymfm/src/ymfm_opz.cpp
./components/ymfm/src/ymfm_pcm.cpp
./components/ymfm/src/ymfm_ssg.cpp
)
add_compile_flags(CXX
-O3
-std=c++14
-fno-exceptions
-Wno-array-bounds
-fPIC
-mbulk-memory
)
add_compile_flags(LD
)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ../dist)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ../dist)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ../dist)
add_library(
ymfm
STATIC
${SOURCE_FILES}
./src/cpp/ymfmffi.cpp
)