Skip to content

Commit

Permalink
feat: add library as a header only library
Browse files Browse the repository at this point in the history
  • Loading branch information
Dup4 committed Apr 18, 2022
1 parent 91e144d commit bdbbd2d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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()
Expand Down

0 comments on commit bdbbd2d

Please sign in to comment.