-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
43 lines (37 loc) · 1003 Bytes
/
CMakeLists.txt
File metadata and controls
43 lines (37 loc) · 1003 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
40
41
42
43
cmake_minimum_required (VERSION 3.1)
project(digidesign_c24_driver LANGUAGES C)
option(VERBOSE "Enable Verbose mode" OFF)
set(C24_DRIVER_SRC
src/c24_controls.h
src/c24_controls.c
src/c24_error.c
src/c24_error.h
src/c24_frame.c
src/c24_frame.h
src/c24_handshake.c
src/c24_handshake.h
src/c24_protocol.h
src/c24_request.c
src/c24_request.h
src/c24_surface.c
src/c24_surface.h
src/c24_surface_manager.c
src/c24_surface_manager.h
src/c24_surface_private_definitions.h
src/c24_vu_meter_mask_request.c
src/c24_vu_meter_mask_request.h
src/log.h
src/network.c
src/network.h
src/queue.c
src/queue.h
src/utility.c
src/utility.h
)
add_library(c24_driver STATIC ${C24_DRIVER_SRC})
target_include_directories(c24_driver PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)
if (VERBOSE)
target_compile_definitions(c24_driver PUBLIC "VERBOSE")
endif()
add_executable(exemple src/exemple.c)
target_link_libraries(exemple c24_driver pthread m) # m = math is only needed because of the sin function