Initial commit
This commit is contained in:
30
CMakeLists.txt
Normal file
30
CMakeLists.txt
Normal file
@@ -0,0 +1,30 @@
|
||||
cmake_minimum_required(VERSION 3.10)
|
||||
project(azeron-linux VERSION 1.0.0 LANGUAGES C)
|
||||
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
set(CMAKE_C_STANDARD_REQUIRED ON)
|
||||
|
||||
# Find required packages
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(LIBUSB REQUIRED libusb-1.0>=1.0.16)
|
||||
pkg_check_modules(JSON REQUIRED json-c)
|
||||
|
||||
# Include directories
|
||||
include_directories(${LIBUSB_INCLUDE_DIRS})
|
||||
include_directories(${JSON_INCLUDE_DIRS})
|
||||
|
||||
# Library directory
|
||||
add_subdirectory(libazeron)
|
||||
|
||||
# CLI tool
|
||||
add_subdirectory(azeron-cli)
|
||||
|
||||
# Install udev rules
|
||||
install(FILES scripts/udev-rules/99-azeron.rules
|
||||
DESTINATION /etc/udev/rules.d
|
||||
COMPONENT udev)
|
||||
|
||||
# Install documentation
|
||||
install(FILES README.md plan.md
|
||||
DESTINATION share/doc/azeron-linux
|
||||
COMPONENT doc)
|
||||
Reference in New Issue
Block a user