diff --git a/CMakeLists.txt b/CMakeLists.txt index 89fe5ff..41f309a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,11 @@ else() target_link_libraries(${PROJECT_NAME} PUBLIC qwt) endif() -add_subdirectory(examples) +if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) + add_subdirectory(examples) +endif() -enable_testing() -add_subdirectory(tests) +if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) + enable_testing() + add_subdirectory(tests) +endif()