소스 검색

Fix CMake 3.0 configure error when building CTK with testing enabled

Jean-Christophe Fillion-Robin 11 년 전
부모
커밋
1d88349c37
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      Libs/Core/Testing/Cpp/CMakeLists.txt

+ 2 - 3
Libs/Core/Testing/Cpp/CMakeLists.txt

@@ -9,7 +9,6 @@ ctkMacroBuildLib(
   TARGET_LIBRARIES ${CTK_BASE_LIBRARIES}
   LIBRARY_TYPE "SHARED"
   )
-get_target_property(ctkDummyPluginPATH "CTKDummyPlugin" LOCATION)
 remove_definitions(-DCTKDummyPlugin)
 
 set(KIT ${PROJECT_NAME})
@@ -130,9 +129,9 @@ endif()
 #
 
 SIMPLE_TEST( ctkAbstractFactoryTest1 )
-SIMPLE_TEST( ctkAbstractLibraryFactoryTest1 ${ctkDummyPluginPATH} )
+SIMPLE_TEST( ctkAbstractLibraryFactoryTest1 $<TARGET_FILE:CTKDummyPlugin> )
 SIMPLE_TEST( ctkAbstractObjectFactoryTest1 )
-SIMPLE_TEST( ctkAbstractPluginFactoryTest1 ${ctkDummyPluginPATH} )
+SIMPLE_TEST( ctkAbstractPluginFactoryTest1 $<TARGET_FILE:CTKDummyPlugin> )
 SIMPLE_TEST( ctkAbstractQObjectFactoryTest1 )
 SIMPLE_TEST( ctkBackTraceTest )
 if(HAVE_BFD)