-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
39 lines (30 loc) · 619 Bytes
/
Copy pathCMakeLists.txt
File metadata and controls
39 lines (30 loc) · 619 Bytes
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
project(pifunk)
add_definitions(-D_USE_MATH_DEFINES)
add_definitions(-D_POSIX_C_SOURCE=200809L)
add_definitions(-D_GNU_SOURCE)
find_package(sox REQUIRED)
include_directories(
${CMAKE_SOURCE_DIR}/PiFunk
${CMAKE_SOURCE_DIR}/PiFunk/include
)
set(pifunk_HEADERS
include/pifunk.h
include/sndfile.h
)
set(pifunk_SOURCES
PiFunk/pifunk.c
)
add_library(pifunk STATIC
${pifunk_HEADERS}
${pifunk_SOURCES}
)
target_include_directories(pifunk
PUBLIC .
)
target_link_libraries(pifunk
${pifunk_LIBRARIES}
)
add_executable(bin/pifunk
bin/pifunk.out
bin/pifunk.bin
)