From bdbbd2d4649a76e803a1d2975442813c7868f877 Mon Sep 17 00:00:00 2001 From: Dup4 Date: Mon, 18 Apr 2022 13:07:53 +0800 Subject: [PATCH] feat: add library as a header only library --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 843f248..2bb863c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ option(snapshot_build_tests "Build all of snapshot's own tests." OFF) cmake_minimum_required(VERSION 3.14) -project(snapshot-cpp VERSION 0.1.3) +project(snapshot VERSION 0.1.4) set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -19,6 +19,9 @@ include_directories( ${PROJECT_SOURCE_DIR}/include/ ) +add_library(snapshot INTERFACE) +target_include_directories(snapshot INTERFACE ${PROJECT_SOURCE_DIR}/include/) + if (snapshot_build_tests) enable_testing()