################################################################################ ## ## Copyright (c) 2007-2009 Illumina, Inc. ## ## This software is covered by the "Illumina Genome Analyzer Software ## License Agreement" and the "Illumina Source Code License Agreement", ## and certain third party copyright/licenses, and any user of this ## source file is bound by the terms therein (see accompanying files ## Illumina_Genome_Analyzer_Software_License_Agreement.pdf and ## Illumina_Source_Code_License_Agreement.pdf and third party ## copyright/license notices). ## ## This file is part of the Consensus Assessment of Sequence And VAriation ## (CASAVA) software package. ## ## file configure ## ## Configuration file for the c++/programs subdirectory ## ## author Come Raczy ## ################################################################################ include(${CASAVA_CXX_EXECUTABLE_CMAKE}) file (GLOB CASAVA_PROGRAM_SOURCE_LIST [a-zA-Z0-9]*.cpp) ## ## Generic rule for all the other programs ## set(BAM_LIBRARY "${SAMTOOLS_DIR}/libbam.a") foreach(CASAVA_PROGRAM_SOURCE ${CASAVA_PROGRAM_SOURCE_LIST}) get_filename_component(CASAVA_PROGRAM ${CASAVA_PROGRAM_SOURCE} NAME_WE) add_executable (${CASAVA_PROGRAM} ${CASAVA_PROGRAM_SOURCE}) target_link_libraries (${CASAVA_PROGRAM} ${CASAVA_AVAILABLE_LIBRARIES} ${BAM_LIBRARY} ${Boost_LIBRARIES} ${LIBXML2_LIBRARIES} ${CASAVA_ADDITIONAL_LIB} ) install(TARGETS ${CASAVA_PROGRAM} RUNTIME DESTINATION ${CASAVA_BINDIR}) endforeach(CASAVA_PROGRAM_SOURCE)