20 lines
509 B
CMake
20 lines
509 B
CMake
cmake_minimum_required(VERSION 3.20...3.20)
|
|
|
|
# Global build options.
|
|
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "The type of build.")
|
|
|
|
project(cppscripts
|
|
DESCRIPTION "Various single file scripts."
|
|
LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|
set(CMAKE_CXX_EXTENSIONS OFF)
|
|
|
|
find_package(fmt 7 REQUIRED CONFIG)
|
|
# find_package(termcolor CONFIG)
|
|
# find_package(Threads REQUIRED)
|
|
|
|
add_executable(statustime "statustime.cpp")
|
|
target_link_libraries(statustime PUBLIC fmt::fmt)
|