diff --git a/CMakeLists.txt b/CMakeLists.txt index 95b86b61..e571357f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,9 +73,9 @@ if(${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME}) "${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake" DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake) install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/etl DESTINATION include) -endif() - -if (BUILD_TESTS) - enable_testing() - add_subdirectory(test) + + if (BUILD_TESTS) + enable_testing() + add_subdirectory(test) + endif() endif()