|
@@ -177,13 +177,6 @@ set(CMAKE_MACOSX_RPATH 1)
|
177
|
177
|
|
178
|
178
|
project (Lemma CXX)
|
179
|
179
|
|
180
|
|
-if(CXXTEST_FOUND)
|
181
|
|
- if (LEMMA_ENABLE_TESTING)
|
182
|
|
- include (CTest)
|
183
|
|
- enable_testing()
|
184
|
|
- endif()
|
185
|
|
-endif()
|
186
|
|
-
|
187
|
180
|
# Disallow in-source build
|
188
|
181
|
if ("${Lemma_SOURCE_DIR}" STREQUAL "${Lemma_BINARY_DIR}")
|
189
|
182
|
message(FATAL_ERROR
|
|
@@ -191,6 +184,13 @@ if ("${Lemma_SOURCE_DIR}" STREQUAL "${Lemma_BINARY_DIR}")
|
191
|
184
|
"Please create a separate binary directory and run CMake there.")
|
192
|
185
|
endif()
|
193
|
186
|
|
|
187
|
+if(CXXTEST_FOUND)
|
|
188
|
+ if (LEMMA_ENABLE_TESTING)
|
|
189
|
+ include (CTest)
|
|
190
|
+ enable_testing()
|
|
191
|
+ endif()
|
|
192
|
+endif()
|
|
193
|
+
|
194
|
194
|
##############################
|
195
|
195
|
# required external programs # for downloading packages
|
196
|
196
|
##############################
|
|
@@ -313,12 +313,12 @@ add_subdirectory (Modules)
|
313
|
313
|
|
314
|
314
|
#######################################################################
|
315
|
315
|
# CXXTEST Framework
|
316
|
|
-#if(CXXTEST_FOUND)
|
317
|
|
-# if (LEMMA_ENABLE_TESTING)
|
318
|
|
-# include (CTest)
|
319
|
|
- #enable_testing()
|
320
|
|
-# endif()
|
321
|
|
-#endif()
|
|
316
|
+if(CXXTEST_FOUND)
|
|
317
|
+ if (LEMMA_ENABLE_TESTING)
|
|
318
|
+ include (CTest)
|
|
319
|
+ enable_testing()
|
|
320
|
+ endif()
|
|
321
|
+endif()
|
322
|
322
|
|
323
|
323
|
########################################################################
|
324
|
324
|
# add a target to generate API documentation with Doxyfile.in
|