From: <kor...@us...> - 2009-09-21 06:30:42
|
Revision: 1078 http://panotools.svn.sourceforge.net/panotools/?rev=1078&view=rev Author: kornelbenko Date: 2009-09-21 06:30:35 +0000 (Mon, 21 Sep 2009) Log Message: ----------- Added needed libraries to create tools Modified Paths: -------------- trunk/libpano/CMakeLists.txt trunk/libpano/tools/CMakeLists.txt Modified: trunk/libpano/CMakeLists.txt =================================================================== --- trunk/libpano/CMakeLists.txt 2009-09-20 21:32:54 UTC (rev 1077) +++ trunk/libpano/CMakeLists.txt 2009-09-21 06:30:35 UTC (rev 1078) @@ -67,7 +67,9 @@ FIND_PACKAGE(PNG REQUIRED) INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIR}) INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR}) - + +set(_common_libs ${TIFF_LIBRARIES} ${ZLIB_LIBRARIES} ${JPEG_LIBRARIES} ${PNG_LIBRARIES}) + # # Check build type and set options accordingly # Modified: trunk/libpano/tools/CMakeLists.txt =================================================================== --- trunk/libpano/tools/CMakeLists.txt 2009-09-20 21:32:54 UTC (rev 1077) +++ trunk/libpano/tools/CMakeLists.txt 2009-09-21 06:30:35 UTC (rev 1078) @@ -23,8 +23,8 @@ foreach(_cmd ${commands}) add_executable(${_cmd} ${_cmd}.c) - target_link_libraries(${_cmd} pano13 ${TIFF_LIBRARY} ${PNG_LIBRARY}) + target_link_libraries(${_cmd} pano13 ${_common_libs}) install(TARGETS ${_cmd} DESTINATION bin CONFIGURATIONS Release RelWithDebInfo MinSizeRel) endforeach(_cmd) -add_custom_target(tools DEPENDS ${commands}) \ No newline at end of file +add_custom_target(tools DEPENDS ${commands}) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |