File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 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+
1620find_package (HTSLIB REQUIRED)
1721find_package (Threads REQUIRED)
22+ find_package (ZLIB REQUIRED)
1823
19- if (NOT TARGET bamxx)
20- add_subdirectory (bamxx)
21- endif ()
2224if (NOT TARGET smithlab_cpp)
2325 add_subdirectory (smithlab_cpp)
2426endif ()
2527
28+ if (NOT TARGET bamxx)
29+ add_subdirectory (bamxx)
30+ endif ()
31+
2632add_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
3951target_include_directories (abismal_objs PUBLIC
4052 ${CMAKE_CURRENT_SOURCE_DIR}
You can’t perform that action at this time.
0 commit comments