--- libindi-0.9.7.old/CMakeLists.txt 2013-12-14 15:49:09.302518454 +0100 +++ libindi-0.9.7/CMakeLists.txt 2013-12-14 16:03:35.095501743 +0100 @@ -204,7 +204,7 @@ add_executable(indi_lx200generic ${lx200generic_SRCS}) -target_link_libraries(indi_lx200generic indidriver ${NOVA_LIBRARIES} m ) +target_link_libraries(indi_lx200generic indidriver ${NOVA_LIBRARIES} m ${ZLIB_LIBRARIES}) install(TARGETS indi_lx200generic RUNTIME DESTINATION bin ) @@ -247,7 +247,7 @@ add_executable(indi_celestron_gps ${celestrongps_SRCS}) -target_link_libraries(indi_celestron_gps indidriver ${NOVA_LIBRARIES} m ) +target_link_libraries(indi_celestron_gps indidriver ${NOVA_LIBRARIES} m ${ZLIB_LIBRARIES}) install(TARGETS indi_celestron_gps RUNTIME DESTINATION bin ) @@ -602,7 +602,7 @@ add_executable(tutorial_one ${tutorialone_SRCS}) -target_link_libraries(tutorial_one indidriver m) +target_link_libraries(tutorial_one indidriver m ${ZLIB_LIBRARIES}) ########### Tutorial two ############## set(tutorialtwo_SRCS @@ -612,7 +612,7 @@ add_executable(tutorial_two ${tutorialtwo_SRCS}) -target_link_libraries(tutorial_two indidriver m) +target_link_libraries(tutorial_two indidriver m ${ZLIB_LIBRARIES}) ########### Tutorial three ############## if (CFITSIO_FOUND) @@ -623,7 +623,7 @@ add_executable(tutorial_three ${tutorialthree_SRCS}) -target_link_libraries(tutorial_three indidriver m) +target_link_libraries(tutorial_three indidriver m ${ZLIB_LIBRARIES}) endif (CFITSIO_FOUND) ########### Tutorial four ############## set(tutorialfour_SRCS @@ -633,7 +633,7 @@ add_executable(tutorial_four ${tutorialfour_SRCS}) -target_link_libraries(tutorial_four indidriver m) +target_link_libraries(tutorial_four indidriver m ${ZLIB_LIBRARIES}) ########### Tutorial five - dome driver ############## set(tutorialdome_SRCS @@ -643,7 +643,7 @@ add_executable(tutorial_dome ${tutorialdome_SRCS}) -target_link_libraries(tutorial_dome indidriver) +target_link_libraries(tutorial_dome indidriver ${ZLIB_LIBRARIES}) ########### Tutorial five - rain driver ############## set(tutorialrain_SRCS @@ -653,7 +653,7 @@ add_executable(tutorial_rain ${tutorialrain_SRCS}) -target_link_libraries(tutorial_rain indidriver) +target_link_libraries(tutorial_rain indidriver ${ZLIB_LIBRARIES}) ########### Client Tutorial ############## set(tutorialclient_SRCS