2019-02-23 21:48:41 +11:00
|
|
|
cmake_minimum_required(VERSION 3.10.0)
|
|
|
|
project(quimby
|
|
|
|
VERSION 0.0.1
|
|
|
|
HOMEPAGE_URL "https://nerdcruft.net"
|
|
|
|
LANGUAGES CXX
|
|
|
|
)
|
|
|
|
|
2019-02-24 11:57:14 +11:00
|
|
|
list (APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
|
|
|
include (nc)
|
|
|
|
|
2019-02-24 21:31:56 +11:00
|
|
|
include_directories("${CMAKE_CURRENT_SOURCE_DIR}")
|
|
|
|
|
2019-02-24 12:23:07 +11:00
|
|
|
add_subdirectory(cruft/util)
|
|
|
|
add_subdirectory(cruft/evdev)
|
|
|
|
|
|
|
|
add_executable(relay relay.cpp)
|
|
|
|
|
2019-02-23 21:48:41 +11:00
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
systemd/system/quimby.service
|
|
|
|
DESTINATION
|
|
|
|
/usr/lib/systemd/system/
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
FILES
|
|
|
|
udev/quimby.rules
|
|
|
|
DESTINATION
|
|
|
|
/etc/udev/rules.d/
|
|
|
|
)
|
|
|
|
|
|
|
|
install(
|
|
|
|
PROGRAMS
|
|
|
|
quimby-relay
|
|
|
|
quimby-cleanup
|
|
|
|
quimby-setup
|
|
|
|
DESTINATION
|
|
|
|
bin
|
|
|
|
)
|
|
|
|
|
|
|
|
include (CPack)
|