| 1 | |
| 2 | |
| 3 | @@ -21,24 +21,6 @@
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 | -### Link HTSlib
|
| 8 | -
|
| 9 | -ExternalProject_Add(htslib
|
| 10 | - PREFIX ${CMAKE_BINARY_DIR}/htslib
|
| 11 | - GIT_REPOSITORY "https://github.com/samtools/htslib.git"
|
| 12 | - GIT_TAG "1.3.1"
|
| 13 | - UPDATE_COMMAND ""
|
| 14 | - BUILD_IN_SOURCE 1
|
| 15 | - CONFIGURE_COMMAND ""
|
| 16 | - BUILD_COMMAND make
|
| 17 | - INSTALL_COMMAND make install prefix=${CMAKE_BINARY_DIR}/htslib
|
| 18 | - LOG_DOWNLOAD 1
|
| 19 | -)
|
| 20 | -link_directories (${CMAKE_BINARY_DIR}/htslib/lib)
|
| 21 | -include_directories (${CMAKE_BINARY_DIR}/htslib/include)
|
| 22 | -
|
| 23 | -
|
| 24 | -
|
| 25 | ### Set version
|
| 26 |
|
| 27 | # Get the current working branch
|
| 28 | @@ -64,13 +46,6 @@
|
| 29 |
|
| 30 | # 2. Boost version from find_package (Boost_VERSION)
|
| 31 |
|
| 32 | -# 3. Get HTSlib version from git
|
| 33 | -execute_process(
|
| 34 | - COMMAND git describe --always
|
| 35 | - WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/htslib
|
| 36 | - OUTPUT_VARIABLE HTSLIB_VERSION
|
| 37 | - OUTPUT_STRIP_TRAILING_WHITESPACE
|
| 38 | -)
|
| 39 | set(HTSLIB_VERSION "1.3.1 ${HTSLIB_VERSION}")
|
| 40 |
|
| 41 | # 4. write version.hpp file
|
| 42 | @@ -105,7 +80,6 @@
|
| 43 | add_executable (mosaic main.cpp ${HEADER_FILES})
|
| 44 | target_link_libraries (mosaic LINK_PUBLIC ${Boost_LIBRARIES})
|
| 45 | target_link_libraries (mosaic LINK_PUBLIC hts)
|
| 46 | -add_dependencies (mosaic htslib)
|
| 47 |
|
| 48 |
|
| 49 | ### Doxygen API documentation
|