-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from chungongyu/dev
dev
- Loading branch information
Showing
22 changed files
with
369 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
add_library(3rdparty | ||
bcr.h | ||
bcr.c | ||
) | ||
target_include_directories(3rdparty PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ noinst_LTLIBRARIES = lib3rdparty.la | |
lib3rdparty_la_SOURCES = \ | ||
bcr.c \ | ||
bcr.h | ||
EXTRA_DIST=CMakeLists.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
cmake_minimum_required(VERSION 3.11) | ||
|
||
project(siga VERSION 0.10) | ||
|
||
set(PROJECT_URL "http:https://bioinfo.ict.ac.cn/siga") | ||
set(PACKAGE_BUGREPORT "[email protected]") | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") | ||
|
||
find_package(Boost COMPONENTS filesystem iostreams program_options unit_test_framework REQUIRED) | ||
find_package(OpenMP QUIET) | ||
find_package(RapidJSON REQUIRED) | ||
|
||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(LOG4CXX REQUIRED liblog4cxx>=0.10.0) | ||
pkg_check_modules(TCMalloc QUIET libtcmalloc>=2.1) | ||
|
||
find_program(HELP2MAN NAMES help2man) | ||
find_program(BUNDLE NAMES bundle) | ||
|
||
configure_file(siga.h.in config.h @ONLY) | ||
enable_testing() | ||
|
||
add_subdirectory(3rdparty) | ||
add_subdirectory(docs) | ||
add_subdirectory(src) | ||
add_subdirectory(test) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
SUBDIRS=3rdparty benchmark docs examples m4 src test | ||
EXTRA_DIST=autogen.sh | ||
EXTRA_DIST=autogen.sh \ | ||
CMakeLists.txt \ | ||
siga.h.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
if(BUNDLE) | ||
add_custom_target(html ALL | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/Gemfile ${CMAKE_CURRENT_BINARY_DIR}/Gemfile | ||
COMMAND bundle install --path=vendor/bundle | ||
COMMAND bundle exec jekyll build --source=${CMAKE_CURRENT_SOURCE_DIR} --layouts=${CMAKE_CURRENT_SOURCE_DIR} | ||
DEPENDS siga | ||
) | ||
endif(BUNDLE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#cmakedefine OpenMP_FOUND | ||
|
||
#define PACKAGE "@PROJECT_NAME@" | ||
#define PACKAGE_NAME "@PROJECT_NAME@" | ||
#define PACKAGE_VERSION "@PROJECT_VERSION@" | ||
#define PACKAGE_URL "@PROJECT_URL@" | ||
#define PACKAGE_BUGREPORT "@PROJECT_BUGREPORT@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
add_library(libsiga | ||
alphabet.h | ||
asqg.cpp | ||
asqg.h | ||
bigraph.cpp | ||
bigraph.h | ||
bigraph_search.cpp | ||
bigraph_search.h | ||
bigraph_visitors.cpp | ||
bigraph_visitors.h | ||
bwt.cpp | ||
bwt.h | ||
constant.h | ||
correct_processor.cpp | ||
correct_processor.h | ||
coord.cpp | ||
coord.h | ||
fmindex.cpp | ||
fmindex.h | ||
kmerdistr.cpp | ||
kmerdistr.h | ||
kseq.cpp | ||
kseq.h | ||
mkqs.h | ||
overlap_builder.cpp | ||
overlap_builder.h | ||
primer_screen.cpp | ||
primer_screen.h | ||
quality.h | ||
reads.cpp | ||
reads.h | ||
rlstring.h | ||
runner.h | ||
sequence_process_framework.h | ||
suffix_array.cpp | ||
suffix_array.h | ||
suffix_array_builder.cpp | ||
suffix_array_builder.h | ||
utils.cpp | ||
utils.h | ||
) | ||
target_include_directories(libsiga PUBLIC ${CMAKE_BINARY_DIR} ${LOG4CXX_CFLAGS}) | ||
target_link_libraries(libsiga 3rdparty ${LOG4CXX_LDFLAGS} Boost::filesystem Boost::iostreams Boost::program_options) | ||
if(TCMalloc_FOUND) | ||
target_include_directories(libsiga PUBLIC ${TCMalloc_CFLAGS}) | ||
target_link_libraries(libsiga ${TCMalloc_LDFLAGS}) | ||
endif(TCMalloc_FOUND) | ||
|
||
add_executable(siga | ||
assembler.cpp | ||
correct.cpp | ||
indexer.cpp | ||
match.cpp | ||
overlap.cpp | ||
preprocess.cpp | ||
preqc.cpp | ||
rmdup.cpp | ||
subgraph.cpp | ||
main.cpp | ||
) | ||
target_link_libraries(siga libsiga) | ||
target_include_directories(siga PRIVATE ${CMAKE_BINARY_DIR}) | ||
|
||
if(HELP2MAN) | ||
add_custom_target(man ALL | ||
COMMAND help2man -o siga.1 $<TARGET_FILE:siga> | ||
DEPENDS siga | ||
) | ||
endif(HELP2MAN) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,5 +88,5 @@ else | |
man_MANS= | ||
endif !HELP2MAN | ||
|
||
EXTRA_DIST=log4cxx.properties | ||
|
||
EXTRA_DIST=log4cxx.properties \ | ||
CMakeLists.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.