@@ -5,8 +5,8 @@ project(FastANI
55 LANGUAGES CXX )
66#
77# Main executable
8- add_executable (FastANI src/cgi/core_genome_identity.cpp src/cgi/main.cpp )
9- target_include_directories (FastANI PUBLIC "src/" )
8+ add_executable (fastANI src/cgi/core_genome_identity.cpp src/cgi/main.cpp )
9+ target_include_directories (fastANI PUBLIC "src/" )
1010#
1111# by default, static linking
1212option (GSL_SHARED "Build using shared libraries" ON )
@@ -17,15 +17,15 @@ find_package(ZLIB 1.1 REQUIRED)
1717if (${ZLIB_FOUND} )
1818 message ("Using zlib library v${ZLIB_VERSION_STRING} " )
1919endif (${ZLIB_FOUND} )
20- target_link_libraries (FastANI PUBLIC ZLIB::ZLIB )
20+ target_link_libraries (fastANI PUBLIC ZLIB::ZLIB )
2121#
2222# openmp dependency
2323find_package (OpenMP )
2424if (${OpenMP_CXX_FOUND} )
2525 message ("Using OpenMP_CXX v${OpenMP_CXX_VERSION} " )
26- target_link_libraries (FastANI PUBLIC ${OpenMP_CXX_LIBRARIES} )
27- target_include_directories (FastANI PUBLIC ${OpenMP_CXX_INCLUDE_DIRS} )
28- target_compile_options (FastANI PUBLIC ${OpenMP_CXX_FLAGS} )
26+ target_link_libraries (fastANI PUBLIC ${OpenMP_CXX_LIBRARIES} )
27+ target_include_directories (fastANI PUBLIC ${OpenMP_CXX_INCLUDE_DIRS} )
28+ target_compile_options (fastANI PUBLIC ${OpenMP_CXX_FLAGS} )
2929else ()
3030 message ("NOTE: OpenMP not found; Compiling as a single threaded app..." )
3131endif (${OpenMP_CXX_FOUND} )
@@ -35,53 +35,53 @@ find_package(GSL 1.6)
3535if (${GSL_FOUND} )
3636 message ("GSL v${GSL_VERSION} Found: ${GSL_LIBDIR} " )
3737 if (${GSL_SHARED} )
38- target_link_libraries (FastANI PUBLIC ${GSL_LIBRARIES} )
38+ target_link_libraries (fastANI PUBLIC ${GSL_LIBRARIES} )
3939 else ()
4040 # GSL_LIBDIR is not documented
41- target_link_libraries (FastANI PUBLIC
41+ target_link_libraries (fastANI PUBLIC
4242 ${GSL_LIBDIR} /libgsl.a
4343 ${GSL_LIBDIR} /libgslcblas.a )
4444 endif (${GSL_SHARED} )
45- target_include_directories (FastANI PUBLIC ${GSL_INCLUDE_DIRS} )
45+ target_include_directories (fastANI PUBLIC ${GSL_INCLUDE_DIRS} )
4646else ()
4747 set (Boost_USE_STATIC_LIBS ON ) # only find static libs
4848 set (Boost_USE_DEBUG_LIBS OFF ) # ignore debug libs and
4949 set (Boost_USE_RELEASE_LIBS ON ) # only find release libs
5050 set (Boost_USE_MULTITHREADED ON )
5151 find_package (Boost 1.45 REQUIRED COMPONENTS math_c99 )
52- target_link_libraries (FastANI PUBLIC ${Boost_MATCH_C99_LIBRARY} )
53- target_include_directories (FastANI PUBLIC ${Boost_INCLUDE_DIRS} )
54- target_compile_definitions (FastANI PUBLIC USE_BOOST=1 )
52+ target_link_libraries (fastANI PUBLIC ${Boost_MATCH_C99_LIBRARY} )
53+ target_include_directories (fastANI PUBLIC ${Boost_INCLUDE_DIRS} )
54+ target_compile_definitions (fastANI PUBLIC USE_BOOST=1 )
5555endif (${GSL_FOUND} )
5656#
5757#
5858if (${BUILD_TESTING} )
5959 add_subdirectory (ext/Catch2 )
6060 include (CTest )
6161 include (Catch )
62- add_executable (FastANITest tests/fastani_tests.cpp src/cgi/core_genome_identity.cpp )
63- target_include_directories (FastANITest PUBLIC "src/"
62+ add_executable (fastANITest tests/fastani_tests.cpp src/cgi/core_genome_identity.cpp )
63+ target_include_directories (fastANITest PUBLIC "src/"
6464 ${OpenMP_CXX_INCLUDE_DIRS} )
65- target_compile_options (FastANITest PUBLIC
65+ target_compile_options (fastANITest PUBLIC
6666 --coverage -g -O0 -fprofile-arcs -ftest-coverage ${OpenMP_CXX_FLAGS} )
67- target_link_libraries (FastANITest PRIVATE
67+ target_link_libraries (fastANITest PRIVATE
6868 Catch2::Catch2 Catch2::Catch2WithMain
6969 ZLIB::ZLIB GSL::gsl GSL::gslcblas
7070 ${OpenMP_CXX_LIBRARIES}
7171 gcov )
72- catch_discover_tests (FastANITest )
72+ catch_discover_tests (fastANITest )
7373 file (COPY tests/data DESTINATION ${CMAKE_CURRENT_BINARY_DIR} )
74- add_custom_target (lcov lcov -c -d .. -o FastANITest .out
75- COMMAND genhtml -o ../lcov/ FastANITest .out
76- DEPENDS FastANITest )
77- add_custom_target (lcov2 lcov -c -d ./ -o FastANITest .info
78- COMMAND lcov -e FastANITest .info "*/FastANI/src/*/*.cpp" "*/FastANI/src/*/*.hpp" > coverage.info
74+ add_custom_target (lcov lcov -c -d .. -o fastANITest .out
75+ COMMAND genhtml -o ../lcov/ fastANITest .out
76+ DEPENDS fastANITest )
77+ add_custom_target (lcov2 lcov -c -d ./ -o fastANITest .info
78+ COMMAND lcov -e fastANITest .info "*/FastANI/src/*/*.cpp" "*/FastANI/src/*/*.hpp" > coverage.info
7979 COMMAND lcov --list coverage.info |tee coverage_list.txt
8080 COMMAND lcov --summary coverage.info |tee coverage_summary.txt
81- DEPENDS FastANITest )
81+ DEPENDS fastANITest )
8282endif (${BUILD_TESTING} )
8383
84- install (TARGETS FastANI DESTINATION bin)
84+ install (TARGETS fastANI DESTINATION bin)
8585
8686set (CPACK_GENERATOR "TGZ" )
8787set (CPACK_SOURCE_GENERATOR "TGZ" )
0 commit comments