-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
19 lines (13 loc) · 952 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required(VERSION 3.22.1) # State what CMake version is required.
project(madPanner) # State the name of the project.
set(CMAKE_CXX_STANDARD 17) # State what compiler to use.
file(GLOB SOURCES "src/*.cpp") # Make a variable named SOURCES.
include_directories(/usr/local/include) # Include the jack directory path.
include_directories(include) # Include the header file directory.
include_directories(libs) # Include the library directory.
include_directories(/opt/homebrew/Cellar/liblo/0.31/include/lo)
add_executable(madPanner ${SOURCES}) # Make the executable, name it madPanner and include the .cpp files.
find_library(JACK_LIB jack) # Find the jack library and put it in the variable JACK_LIB.
target_link_libraries(madPanner ${JACK_LIB}) # Link the jack library to the project.
find_library(OSC lo) # Find the liblo library for OSC Communication.
target_link_libraries(madPanner ${OSC}) # Link the liblo library to the project.