Skip to content

Commit c034f44

Browse files
src/CMakeLists.txt: Ensuring the required libraries are made available by find_package
1 parent b700dfc commit c034f44

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,26 @@
1313
# You should have received a copy of the GNU General Public License along with
1414
# this program. If not, see <https://www.gnu.org/licenses/>.
1515

16+
# Packages
17+
if(USE_LIBDEFLATE)
18+
find_package(LIBDEFLATE REQUIRED)
19+
endif()
1620
if(BUILD_NANOPORE)
1721
find_package(HTSLIB 1.20 REQUIRED)
1822
add_compile_definitions(BUILD_NANOPORE)
1923
else()
2024
find_package(HTSLIB REQUIRED)
2125
endif()
2226
find_package(Threads REQUIRED)
27+
find_package(ZLIB REQUIRED)
2328

24-
if(NOT TARGET bamxx)
25-
add_subdirectory(bamxx)
26-
endif()
29+
# Subdirs
2730
if(NOT TARGET smithlab_cpp)
2831
add_subdirectory(smithlab_cpp)
2932
endif()
33+
if(NOT TARGET bamxx)
34+
add_subdirectory(bamxx)
35+
endif()
3036
add_subdirectory(common)
3137
add_subdirectory(radmeth)
3238
add_subdirectory(utils)

0 commit comments

Comments
 (0)