diff --git a/CMakeLists.txt b/CMakeLists.txt index fc2c64229..276cbf987 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,7 +8,7 @@ HOMEPAGE_URL https://www.p4est.org/ DESCRIPTION "p4est manages a collection---a forest---of octrees in parallel." VERSION ${PROJECT_VERSION}) -include(CTest) +enable_testing() # --- user options @@ -69,9 +69,9 @@ add_subdirectory(src) # --- optional test and install -if(BUILD_TESTING) +if(P4EST_BUILD_TESTING) add_subdirectory(test) -endif(BUILD_TESTING) +endif() # --- packaging diff --git a/cmake/options.cmake b/cmake/options.cmake index 7a8b510c6..477c178f8 100644 --- a/cmake/options.cmake +++ b/cmake/options.cmake @@ -1,6 +1,8 @@ option(enable_p6est "build p6est" on) option(enable_p8est "build p8est" on) +option(P4EST_BUILD_TESTING "build p4est testing" on) + option(enable-file-deprecated "use deprecated data file format" off) option(vtk_binary "VTK binary interface" on)