-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
81 lines (72 loc) · 1.41 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
cmake_minimum_required(VERSION 3.22.1)
project(gtmobile)
add_executable(
gtmobile
src/app.cpp
src/app.hpp
src/command_edit.cpp
src/command_edit.hpp
src/gfx.cpp
src/gfx.hpp
src/gtplayer.cpp
src/gtplayer.hpp
src/gtsong.cpp
src/gtsong.hpp
src/gui.cpp
src/gui.hpp
src/instrument_manager_view.cpp
src/instrument_manager_view.hpp
src/instrument_view.cpp
src/instrument_view.hpp
src/log.hpp
src/piano.cpp
src/piano.hpp
src/platform.cpp
src/platform.hpp
src/project_view.cpp
src/project_view.hpp
src/settings_view.cpp
src/settings_view.hpp
src/sid.cpp
src/sid.hpp
src/song_view.cpp
src/song_view.hpp
src/vec.hpp
)
target_compile_options(
gtmobile
PRIVATE
-O2
-Wall
)
set_source_files_properties(
src/sid.cpp
PROPERTIES
COMPILE_FLAGS
"-Wno-parentheses -Ofast"
)
set_source_files_properties(
src/gfx.cpp
PROPERTIES
COMPILE_FLAGS
"-Wno-unused-function"
)
find_package(PkgConfig REQUIRED)
pkg_search_module(GLEW REQUIRED glew)
pkg_search_module(SDL2 REQUIRED sdl2)
pkg_search_module(SNDFILE REQUIRED sndfile)
target_include_directories(
gtmobile
SYSTEM
PUBLIC
${GLEW_INCLUDE_DIRS}
${SDL2_INCLUDE_DIRS}
${SNDFILE_INCLUDE_DIRS}
)
target_link_libraries(
gtmobile
${GLEW_LIBRARIES}
${SDL2_LIBRARIES}
${SNDFILE_LIBRARIES}
pthread
)