16 lines
393 B
CMake
16 lines
393 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
set (CMAKE_CXX_STANDARD 20)
|
|
|
|
# Use Ninja by default
|
|
if (NOT CMAKE_GENERATOR)
|
|
set(CMAKE_GENERATOR "Ninja" CACHE INTERNAL "" FORCE)
|
|
endif()
|
|
|
|
# Set the vcpkg toolchain file before project()
|
|
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake"
|
|
CACHE STRING "Vcpkg toolchain file")
|
|
|
|
project(txtv)
|
|
|
|
add_subdirectory(src)
|