ソースを参照

Trying to fix non-compiling test

Ivo Wolf 13 年 前
コミット
16ee78f0db
共有2 個のファイルを変更した4 個の追加4 個の削除を含む
  1. 2 2
      Applications/ctkDICOMHost/Testing/Cpp/CMakeLists.txt
  2. 2 2
      Applications/ctkDICOMHost/Testing/Cpp/ctkDICOMHostTest1.cpp

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

@@ -12,7 +12,7 @@ REMOVE (TestsToRun ${KIT}CppTests.cpp)
 ctkFunctionGetTargetLibraries(KIT_target_libraries)
 
 ADD_EXECUTABLE(${KIT}CppTests ${Tests})
-TARGET_LINK_LIBRARIES(${KIT}CppTests ${KIT_target_libraries})
+TARGET_LINK_LIBRARIES(${KIT}CppTests ${KIT_target_libraries} ${QT_LIBRARIES})
 
 SET( KIT_TESTS ${CPP_TEST_PATH}/${KIT}CppTests)
 IF(WIN32)
@@ -27,4 +27,4 @@ ENDMACRO( SIMPLE_TEST  )
 #
 # Add Tests
 #
-SIMPLE_TEST(ctkDICOMTest1)
+SIMPLE_TEST(ctkDICOMHostTest1)

+ 2 - 2
Applications/ctkDICOMHost/Testing/Cpp/ctkDICOMHostTest1.cpp

@@ -26,10 +26,10 @@
 #include <cstdlib>
 #include <iostream>
 
-int ctkDICOMTest1(int argc, char * argv [])
+int ctkDICOMHostTest1(int argc, char * argv [])
 {
   QCoreApplication app(argc, argv);
-  QString command = QString("ctkDICOM");
+  QString command = QString("ctkDICOMHost");
   QProcess process;
   process.start(command);
   bool res = process.waitForStarted();