Browse Source

Fixes CTK configuration renaming ctkDICOM2 application test. Fixes #454

This commit fixes the following error:

8<----8<----8<----8<----8<----8<----8<----8<----8<----
-- Configuring done
CMake Error at CMake/ctkMacroSimpleTest.cmake:31 (add_test):
  Error evaluating generator expression:

    $<TARGET_FILE:ctkDICOM>

  No target "ctkDICOM"
Call Stack (most recent call first):
  Applications/ctkDICOM2/Testing/Cpp/CMakeLists.txt:21 (SIMPLE_TEST)


-- Generating done
-- Build files have been written to: /home/jchris/Projects/CTK-build/CTK-build
make[2]: *** [CTK-prefix/src/CTK-stamp/CTK-configure] Error 1
make[1]: *** [CMakeFiles/CTK.dir/all] Error 2
make: *** [all] Error 2
8<----8<----8<----8<----8<----8<----8<----8<----8<----
Jean-Christophe Fillion-Robin 11 years ago
parent
commit
5bfb14d8cf

+ 2 - 2
Applications/ctkDICOM2/Testing/Cpp/CMakeLists.txt

@@ -1,7 +1,7 @@
 set(KIT ${PROJECT_NAME})
 
 create_test_sourcelist(Tests ${KIT}CppTests.cpp
-  ctkDICOMTest1.cpp
+  ctkDICOM2Test1.cpp
   )
 
 SET (TestsToRun ${Tests})
@@ -18,4 +18,4 @@ target_link_libraries(${KIT}CppTests ${KIT_target_libraries})
 # Add Tests
 #
 
-SIMPLE_TEST(ctkDICOMTest1 $<TARGET_FILE:ctkDICOM>)
+SIMPLE_TEST(ctkDICOM2Test1 $<TARGET_FILE:ctkDICOM2>)

+ 1 - 1
Applications/ctkDICOM2/Testing/Cpp/ctkDICOMTest1.cpp

@@ -26,7 +26,7 @@
 #include <cstdlib>
 #include <iostream>
 
-int ctkDICOMTest1(int argc, char * argv [])
+int ctkDICOM2Test1(int argc, char * argv [])
 {
   QCoreApplication app(argc, argv);
   if (app.arguments().count() != 2)