Skip to content

Commit 1e16c18

Browse files
authored
Merge pull request #11 from Adttil/opt-test
Make tests optional.
2 parents 31a943b + f9151ee commit 1e16c18

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
cmake_minimum_required(VERSION 3.22)
22
project(magic-cpp)
33

4+
add_library(MAGIC_CPP INTERFACE)
5+
target_include_directories(MAGIC_CPP INTERFACE include)
6+
7+
option(MAGIC_CPP_INCLUDE_TESTS "Include tests" ON)
8+
if(NOT MAGIC_CPP_INCLUDE_TESTS)
9+
return()
10+
endif()
11+
412
set(CMAKE_CXX_STANDARD 20)
513
set(CMAKE_CXX_STANDARD_REQUIRED ON)
614

0 commit comments

Comments
 (0)