# Library
FILE(GLOB QCPP_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/qc-*.hh)

ADD_LIBRARY(libqc++
            qc-io.cc
            )
SET_TARGET_PROPERTIES(libqc++ PROPERTIES OUTPUT_NAME qc++)
TARGET_LINK_LIBRARIES(libqc++ ${DEPENDS_LIBS})

INSTALL(TARGETS libqc++ DESTINATION "lib")
INSTALL(FILES ${QCPP_HEADERS} DESTINATION "include")

# Library
SET(QCPP_HEADERS
        qc-io.hh
        )

ADD_LIBRARY(libqc++
        qc-io.cc
        )

SET_TARGET_PROPERTIES(libqc++ PROPERTIES OUTPUT_NAME qc++)
TARGET_LINK_LIBRARIES(libqc++ ${DEPENDS_LIBS})

INSTALL(TARGETS libqc++ DESTINATION "lib")
INSTALL(FILES ${QCPP_HEADERS} DESTINATION "include")

Use SET not GLOB to create list of sources/headers
Use SET not GLOB to create list of sources/headers
