1 diff -ur a/CMakeLists.txt b/CMakeLists.txt
6 # only add if not inside add_subdirectory()
7 option(TYPE_SAFE_BUILD_TEST_EXAMPLE "build test and example" OFF)
8 -if(${TYPE_SAFE_BUILD_TEST_EXAMPLE} OR (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR))
9 +if(${TYPE_SAFE_BUILD_TEST_EXAMPLE})
11 add_subdirectory(example/)
12 add_subdirectory(test/)