Skip to content

Commit dc8fd56

Browse files
src/CMakeLists.txt: updating dependencies for targets
1 parent 6607fd6 commit dc8fd56

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

src/CMakeLists.txt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,22 @@
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+
if(USE_LIBDEFLATE)
17+
find_package(LIBDEFLATE REQUIRED)
18+
endif()
19+
1620
find_package(HTSLIB REQUIRED)
1721
find_package(Threads REQUIRED)
22+
find_package(ZLIB REQUIRED)
1823

19-
if(NOT TARGET bamxx)
20-
add_subdirectory(bamxx)
21-
endif()
2224
if(NOT TARGET smithlab_cpp)
2325
add_subdirectory(smithlab_cpp)
2426
endif()
2527

28+
if(NOT TARGET bamxx)
29+
add_subdirectory(bamxx)
30+
endif()
31+
2632
add_library(abismal_objs OBJECT
2733
abismal.cpp
2834
abismalidx.cpp
@@ -33,8 +39,14 @@ target_link_libraries(abismal_objs PUBLIC
3339
bamxx
3440
smithlab_cpp
3541
HTSLIB::HTSLIB
42+
ZLIB::ZLIB
3643
Threads::Threads
3744
)
45+
if(USE_LIBDEFLATE)
46+
target_link_libraries(abismal_objs PUBLIC
47+
LIBDEFLATE::LIBDEFLATE
48+
)
49+
endif()
3850
# ADS: CMAKE_BINARY_DIR for config.h
3951
target_include_directories(abismal_objs PUBLIC
4052
${CMAKE_CURRENT_SOURCE_DIR}

0 commit comments

Comments
 (0)