17 lines
443 B
CMake
17 lines
443 B
CMake
cmake_minimum_required(VERSION 3.21)
|
|
project(cuber VERSION 0.1.0)
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
# Add the deps directory to the module path
|
|
# Required for find_package injection
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/deps")
|
|
|
|
# Dependencies
|
|
find_package(fmt REQUIRED)
|
|
|
|
# Target setup
|
|
add_executable(cuber "cuber.cpp")
|
|
target_compile_features(cuber PRIVATE cxx_std_23)
|
|
target_link_libraries(cuber PRIVATE fmt::fmt)
|