-
-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
41 lines (29 loc) · 982 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_minimum_required(VERSION 3.0)
set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "Minimum OS X deployment version")
set(CMAKE_OSX_ARCHITECTURES "arm64;x86_64" CACHE STRING "Build universal binary")
project(Carabiner)
set(Carabiner_VERSION "1.2.0")
configure_file(carabiner.h.in carabiner.h)
configure_file(Info.plist.in Info.plist)
include(link/AbletonLinkConfig.cmake)
add_subdirectory(gflags)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(mongoose_HEADERS
mongoose.h
)
set(mongoose_SOURCES
mongoose.c
)
add_executable(Carabiner
${mongoose_HEADERS}
${mongoose_SOURCES}
carabiner.cpp
)
target_include_directories(Carabiner PUBLIC "${PROJECT_BINARY_DIR}")
if (APPLE)
target_link_options(Carabiner PRIVATE LINKER:-sectcreate,__TEXT,__info_plist,${PROJECT_BINARY_DIR}/Info.plist)
endif()
target_link_libraries(Carabiner Ableton::Link gflags)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
target_link_libraries(Carabiner pthread)
endif()