diff --git a/c_library/CMakeLists.txt b/c_library/CMakeLists.txt index 62d21c3..956b122 100644 --- a/c_library/CMakeLists.txt +++ b/c_library/CMakeLists.txt @@ -59,16 +59,9 @@ endif() # set properties for installation set_target_properties(ImagineModels PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION}) -if (COMPILE_TESTS) +if (IMAGINEMODELS_COMPILE_TESTS) # Build tests enable_testing() - #set(TESTSOURCES grid parameter_update positions derivatives) - #foreach(test ${TESTSOURCES}) - # set(test_name ${test}_ctest) - # add_executable(${test_name} "${PROJECT_SOURCE_DIR}/test/regular/test_${test}.cc") - # target_link_libraries(${test_name} ImagineModels ${LIBRARIES}) - # add_test(${test_name} ${test_name}) - #endforeach() set(TESTSOURCES uniform helix regular) #parameter_update positions derivatives) add_executable(test_main "${PROJECT_SOURCE_DIR}/test/test_main.cc")