Diff of /v3p/png/tests/CMakeLists.txt [b8853e] .. [1fae15]  Maximize  Restore

  Switch to side-by-side view

--- a/v3p/png/tests/CMakeLists.txt
+++ b/v3p/png/tests/CMakeLists.txt
@@ -1,11 +1,12 @@
 INCLUDE(${VXL_CMAKE_DIR}/FindPNG.cmake)
 
 INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
-LINK_LIBRARIES(${PNG_LIBRARIES})
 IF (UNIX)
   LINK_LIBRARIES(m)
 ENDIF (UNIX)
 ADD_DEFINITIONS(${PNG_DEFINITIONS})
 
 ADD_EXECUTABLE(pngtest pngtest.c)
-ADD_TEST(png_test ${EXECUTABLE_OUTPUT_PATH}/pngtest ${CMAKE_CURRENT_SOURCE_DIR}/pngtest.png)
+TARGET_LINK_LIBRARIES(pngtest ${PNG_LIBRARIES})
+
+ADD_TEST(NAME png_test COMMAND ${EXECUTABLE_OUTPUT_PATH}/pngtest ${CMAKE_CURRENT_SOURCE_DIR}/pngtest.png)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks