-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
41 lines (31 loc) · 949 Bytes
/
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
# CMAKE definition file for Max
# depends on max-sdk-base to be present
#
# mkdir build && cd build
# cmake .. -Wno-dev FLEXT_DIR=../flext
# make
cmake_minimum_required(VERSION 3.0)
file(GLOB SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/source/*.cpp)
# output to current folder
set(C74_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} )
set(C74_MAX_API_DIR ${CMAKE_CURRENT_SOURCE_DIR}/max-sdk-base)
include(${C74_MAX_API_DIR}/script/max-pretarget.cmake)
include_directories(
"${C74_MAX_API_DIR}/c74support/max-includes"
"${C74_MAX_API_DIR}/c74support/msp-includes"
"${C74_MAX_API_DIR}/c74support/jit-includes"
"${FLEXT_DIR}/source"
)
add_definitions(
-DFLEXT_INLINE=1
-DFLEXT_ATTRIBUTES=1
-DFLEXT_SYS=1
-DMSP64=1
)
set( SOURCE_FILES ${SOURCES} )
add_library(
${PROJECT_NAME}
MODULE
${SOURCE_FILES}
)
include(${C74_MAX_API_DIR}/script/max-posttarget.cmake)