forked from auto-pi-lot/autopilot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
40 lines (26 loc) · 1.05 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
32
33
34
35
36
37
38
39
cmake_minimum_required(VERSION 3.10)
project(autopilot VERSION 0.3)
#find_package(PythonExtensions REQUIRED)
# Global settings
#set(GLOBAL_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
#set(CMAKE_INSTALL_PREFIX ${PROJECT_BINARY_DIR}/install)
# include download project function from https://github.com/Crascit/DownloadProject/
# include(cmake/DownloadProject.cmake)
option(PIGPIO "Install pigpio (only possible on the raspberry pi)" OFF)
option(JACK "Install jack audio" OFF)
message(STATUS "CMAKE_BUILD_DIR: ${CMAKE_BUILD_DIR}")
message(STATUS "CMAKE_INSTALL_DIR: ${CMAKE_INSTALL_DIR}")
message(STATUS "SETUPTOOLS_INSTALL_DIR: ${SETUPTOOLS_INSTALL_DIR}")
message(STATUS "SKBUILD_DIR: ${SKBUILD_DIR}")
if(PIGPIO)
add_subdirectory(src/pigpio)
list(APPEND INSTALL_AUTOPILOT_PACKAGES pigpio)
endif()
if(JACK)
include(cmake/jack.cmake)
endif()
if(INSTALL_AUTOPILOT_PACKAGES)
install(TARGETS ${INSTALL_AUTOPILOT_PACKAGES} LIBRARY DESTINATION autopilot/external)
else()
install(FILES "nofile" LIBRARY DESTINATION autopilot/external OPTIONAL)
endif()