summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
blob: dc5103225093c80f57e94d84c3a8762c4a6120e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
cmake_minimum_required(VERSION 3.0)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

project(cxxformat)
add_library(cxxformat INTERFACE
	include/cxxformat/cxxformat
	include/cxxformat/core.hpp
	include/cxxformat/file_ptr.hpp
	include/cxxformat/formatters.hpp
	include/cxxformat/helpers.hpp
	include/cxxformat/ostream.hpp
	include/cxxformat/string.hpp
)
target_include_directories(cxxformat INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/include")

add_executable(test EXCLUDE_FROM_ALL main.cpp)
target_link_libraries(test PRIVATE cxxformat)