-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
31 lines (25 loc) · 1.27 KB
/
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
cmake_minimum_required(VERSION 3.0)
project(pd_ndi VERSION 0.5.2)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
set(CMAKE_VERBOSE_MAKEFILE on)
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
if (WIN32)
set(PD_INSTALL_DIR_DEFAULT "c:/Program Files/Pd")
set(GEM_EXTERN_DIR_DEFAULT "c:/Users/$ENV{USERNAME}/Documents/Pd/externals/Gem")
set(NDI_INSTALL_DIR_DEFAULT "c:/Program Files/NDI/NDI 6 SDK")
elseif (APPLE)
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS} -undefined dynamic_lookup")
set(PD_INSTALL_DIR_DEFAULT "/Applications/Pd-0.50-2.app")
set(NDI_INSTALL_DIR_DEFAULT "/Library/NDI SDK for Apple" CACHE PATH "Directory containing NDI SDK")
elseif (UNIX)
set(PD_INSTALL_DIR_DEFAULT "/usr/include/pd")
set(NDI_INSTALL_DIR_DEFAULT "/home/$ENV{USER}/NDI SDK for Linux" CACHE PATH "Directory containing NDI SDK")
endif ()
set(PD_INSTALL_DIR ${PD_INSTALL_DIR_DEFAULT} CACHE PATH "Installation directory of pd")
set(GEM_EXTERN_DIR ${GEM_EXTERN_DIR_DEFAULT} CACHE PATH "Directory containing Gem")
set(NDI_INSTALL_DIR ${NDI_INSTALL_DIR_DEFAULT} CACHE PATH "Installation directory of NDI SDK")
if(POLICY CMP0072)
cmake_policy(SET CMP0072 NEW)
endif()
add_subdirectory(lib/GL)
add_subdirectory(pd_ndi)