diff --git a/CMakeLists.txt b/CMakeLists.txt index b4cd7fb3..32f81325 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -255,15 +255,13 @@ if(enable_tests) add_subdirectory(TESTING) endif() -if (enable_examples) - add_custom_target(examples) - add_subdirectory(EXAMPLE) -endif() - +add_custom_target(examples) if (enable_fortran) add_subdirectory(FORTRAN) endif() +add_subdirectory(EXAMPLE) + if (enable_doc) add_subdirectory(DOC) endif()