We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dec3291 commit e79ed54Copy full SHA for e79ed54
CMakeLists.txt
@@ -176,9 +176,12 @@ ADD_SUBDIRECTORY(python)
176
ADD_SUBDIRECTORY(pkgconfig)
177
ADD_SUBDIRECTORY(doc)
178
179
-# # enable testing must be called here in order for the target test to be created
180
-# ENABLE_TESTING()
181
-# ADD_SUBDIRECTORY(test EXCLUDE_FROM_ALL)
+# enable testing must be called here in order for the target test to be created
+option(CPPADCODEGEN_BUILD_TESTS "Add targets for unit testing." ON)
+if(CPPADCODEGEN_BUILD_TESTS)
182
+ ENABLE_TESTING()
183
+ ADD_SUBDIRECTORY(test EXCLUDE_FROM_ALL)
184
+endif()
185
186
# =============================================================================
187
# uninstall procedure
0 commit comments