-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
50 lines (44 loc) · 1.05 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
cmake_minimum_required(VERSION 3.8)
project(octopus)
INCLUDE(FindPkgConfig)
PKG_SEARCH_MODULE(SDL2 REQUIRED sdl2)
PKG_SEARCH_MODULE(SDL2TTF REQUIRED SDL2_ttf>=2.0.0)
set(SRC ${CMAKE_SOURCE_DIR}/src)
add_executable(octopus
${SRC}/main.cpp
${SRC}/headers/tracker.cpp
${SRC}/headers/util.cpp
${SRC}/headers/audioworks.cpp
${SRC}/headers/sequence_list.cpp
${SRC}/headers/instrument_properties.cpp
${SRC}/headers/disk_op.cpp
${SRC}/headers/sample_edit.cpp
${SRC}/headers/sdl_keymap.cpp
${SRC}/headers/moduleformat.cpp
${SRC}/headers/help.cpp
)
target_include_directories(
octopus PUBLIC
${SDL2_TTF_INCLUDE_DIRS}
${SDL2_INCLUDE_DIRS}
)
target_link_libraries(
octopus PUBLIC
${SDL2_TTF_LIBRARIES}
${SDL2_LIBRARIES}
SDL2_ttf
)
configure_file(
${CMAKE_SOURCE_DIR}/fonts/font.TTF
${CMAKE_CURRENT_BINARY_DIR}/font.TTF
COPYONLY
)
install(TARGETS octopus
COMPONENT linapp
RUNTIME DESTINATION "/bin/"
LIBRARY DESTINATION "/lib/"
DESTINATION "/bin/"
)
SET(CPACK_GENERATOR "DEB")
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "KK") #required
INCLUDE(CPack)