-
Notifications
You must be signed in to change notification settings - Fork 14
/
CMakeLists.txt
33 lines (26 loc) · 931 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
cmake_minimum_required(VERSION 3.1)
project(sendosc)
set (CMAKE_CXX_STANDARD 11)
if(WIN32)
include_directories( c:\\local\\oscpack_1_1_0\\include )
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
link_directories( c:\\local\\oscpack_1_1_0\\lib\\Debug )
else()
link_directories( c:\\local\\oscpack_1_1_0\\lib\\Release )
endif()
set(LIBS ${LIBS} ws2_32 winmm)
elseif(APPLE)
include_directories(/usr/local/include/oscpack /opt/homebrew/include/oscpack)
link_directories(/usr/local/lib /opt/homebrew/lib)
set(CMAKE_CXX_FLAGS "-g -Wall")
set(CMAKE_C_FLAGS "-g -Wall")
else()
include_directories(/usr/include/oscpack)
include_directories(/usr/local/include/oscpack)
link_directories(/usr/local/lib)
set(CMAKE_CXX_FLAGS "-g -Wall")
set(CMAKE_C_FLAGS "-g -Wall")
endif()
add_executable(sendosc sendosc.cpp)
target_link_libraries(sendosc oscpack ${LIBS})
INSTALL(TARGETS sendosc RUNTIME DESTINATION bin)