-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
61 lines (53 loc) · 1.38 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
cmake_minimum_required(VERSION 3.4.1)
project(fakesid)
add_compile_options(-std=c++17 -Wall -O3)
add_executable(${PROJECT_NAME}
src/resid-0.16/envelope.cc
src/resid-0.16/extfilt.cc
src/resid-0.16/filter.cc
src/resid-0.16/pot.cc
src/resid-0.16/sid.cc
src/resid-0.16/version.cc
src/resid-0.16/voice.cc
src/resid-0.16/wave6581_PS_.cc
src/resid-0.16/wave6581_PST.cc
src/resid-0.16/wave6581_P_T.cc
src/resid-0.16/wave6581__ST.cc
src/resid-0.16/wave8580_PS_.cc
src/resid-0.16/wave8580_PST.cc
src/resid-0.16/wave8580_P_T.cc
src/resid-0.16/wave8580__ST.cc
src/resid-0.16/wave.cc
src/app.cpp
src/edit.cpp
src/foo.cpp
src/gfx.cpp
src/gui.cpp
src/instrument_effect_view.cpp
src/jam_view.cpp
src/main.cpp
src/player.cpp
src/project_view.cpp
src/render.cpp
src/settings.cpp
src/sid_engine.cpp
src/song.cpp
src/song_view.cpp
src/stb_image.h
src/track_view.cpp
)
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(${PROJECT_NAME} SYSTEM PUBLIC
${GLEW_INCLUDE_DIRS}
${SDL2_INCLUDE_DIRS}
${SNDFILE_INCLUDE_DIRS}
)
target_link_libraries(${PROJECT_NAME} #PRIVATE
${GLEW_LIBRARIES}
${SDL2_LIBRARIES}
${SNDFILE_LIBRARIES}
pthread
)