Skip to content

Commit

Permalink
CMake: updated install paths and adding missing source code for Debia…
Browse files Browse the repository at this point in the history
…n+vcflib build
  • Loading branch information
pjotrp committed Jan 28, 2023
1 parent c753c0a commit 188b522
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# For Debian currently with
#
# cd build
# cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
# make
# make test
# make install
# See below option statements and the README for build information

cmake_minimum_required(VERSION 3.16)
Expand Down Expand Up @@ -83,8 +90,16 @@ include_directories(.)

file(GLOB INCLUDES
wavefront/*.h*
)
file(GLOB UTILS_INCLUDES
utils/*.h*
)
file(GLOB ALIGNMENT_INCLUDES
alignment/*.h*
)
file(GLOB SYSTEM_INCLUDES
system/*.h*
)

set(wfa2lib_SOURCE
wavefront/wavefront_align.c
Expand All @@ -111,9 +126,23 @@ set(wfa2lib_SOURCE
wavefront/wavefront_plot.c
wavefront/wavefront_slab.c
wavefront/wavefront_unialign.c
system/mm_stack.c
system/mm_allocator.c
system/profiler_counter.c
system/profiler_timer.c
utils/bitmap.c
utils/dna_text.c
utils/sequence_buffer.c
utils/vector.c
utils/commons.c
utils/heatmap.c
utils/string_padded.c
alignment/affine2p_penalties.c
alignment/affine_penalties.c
alignment/cigar.c
alignment/score_matrix.c
)


add_library(wfa2_static
${wfa2lib_SOURCE}
)
Expand Down Expand Up @@ -155,4 +184,7 @@ add_wfa_test()
install(TARGETS wfa2_static ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )
install(TARGETS wfa2 ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} )

install(FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/wfa2lib)
install(FILES ${INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/wfa2lib/wavefront)
install(FILES ${UTILS_INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/wfa2lib/utils)
install(FILES ${ALIGNMENT_INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/wfa2lib/alignment)
install(FILES ${SYSTEM_INCLUDES} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/wfa2lib/system)

0 comments on commit 188b522

Please sign in to comment.