ROGueENEMY/CMakeLists.txt
2023-11-10 22:12:41 +01:00

20 lines
No EOL
622 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 CXX)
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
# Adding something we can run - Output name matches target name
add_executable(rogue_enemy main.c dev_iio.c input_dev.c output_dev.c queue.c)
target_link_libraries(rogue_enemy PRIVATE Threads::Threads)
set_target_properties(rogue_enemy PROPERTIES LINKER_LANGUAGE C)