mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2025-12-16 19:24:37 +00:00
17 lines
443 B
CMake
17 lines
443 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
project(dicremote C)
|
|
|
|
set(CMAKE_C_STANDARD 90)
|
|
|
|
set(MAIN_SOURCES main.c list_devices.c device.c)
|
|
|
|
if("${CMAKE_SYSTEM}" MATCHES "Linux")
|
|
set(PLATFORM_SOURCES linux/list_devices.c linux/linux.h linux/device.c)
|
|
endif()
|
|
|
|
add_executable(dicremote ${MAIN_SOURCES} ${PLATFORM_SOURCES})
|
|
|
|
# TODO: Properly check udev exists
|
|
if("${CMAKE_SYSTEM}" MATCHES "Linux")
|
|
target_link_libraries(dicremote udev)
|
|
endif() |