CMakeLists.txt 891 B

123456789101112131415161718192021222324252627282930
  1. #-----------------------------------------------------------------------------
  2. set(MODULE_NAME cardiacSPECT)
  3. #-----------------------------------------------------------------------------
  4. set(MODULE_PYTHON_SCRIPTS
  5. ${MODULE_NAME}.py
  6. )
  7. set(MODULE_PYTHON_RESOURCES
  8. Resources/Icons/${MODULE_NAME}.png
  9. )
  10. #-----------------------------------------------------------------------------
  11. slicerMacroBuildScriptedModule(
  12. NAME ${MODULE_NAME}
  13. SCRIPTS ${MODULE_PYTHON_SCRIPTS}
  14. RESOURCES ${MODULE_PYTHON_RESOURCES}
  15. WITH_GENERIC_TESTS
  16. )
  17. #-----------------------------------------------------------------------------
  18. if(BUILD_TESTING)
  19. # Register the unittest subclass in the main script as a ctest.
  20. # Note that the test will also be available at runtime.
  21. slicer_add_python_unittest(SCRIPT ${MODULE_NAME}.py)
  22. # Additional build-time testing
  23. add_subdirectory(Testing)
  24. endif()