ROGueENEMY/CMakeLists.txt
2023-11-21 00:36:29 +01:00

20 lines
671 B
CMake

# Almost all CMake files should start with this
# You should always specify a range with the newest
# and oldest tested versions of CMake. This will ensure
# you pick up the best policies.
cmake_minimum_required(VERSION 3.1...3.27)
project(
ROGueENEMY
VERSION 1.0
LANGUAGES C)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
# Adding something we can run - Output name matches target name
add_executable(${PROJECT_NAME} dev_iio.c input_dev.c logic.c main.c output_dev.c platform.c queue.c virt_ds4.c)
target_link_libraries(${PROJECT_NAME} PRIVATE Threads::Threads -levdev)
set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE C)