-
Notifications
You must be signed in to change notification settings - Fork 72
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 #49 from JGI-Bioinformatics/master
Flush close on destroy, CMake and buff_size Added CMakeLists.txt and included buff_size in the constructor of the i/ofstream classes Including a close on the underlying I/ofstream on destruction
- Loading branch information
Showing
4 changed files
with
32 additions
and
11 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 |
---|---|---|
@@ -1 +1,4 @@ | ||
/local | ||
/build* | ||
/nbproject/ | ||
/.vscode/ |
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,16 @@ | ||
cmake_minimum_required(VERSION 3.10 FATAL_ERROR) | ||
project(zstr) | ||
|
||
if(${CMAKE_VERSION} VERSION_LESS 3.13) | ||
message(WARNING "Interface libraries are not well supported before cmake 3.13, you will need to include within the parent CMakeLists.txt: INCLUDE_DIRECTORIES(zstr/src)") | ||
endif() | ||
|
||
# zlib is required | ||
find_package(ZLIB 1.2.3 REQUIRED) | ||
|
||
add_library(zstr INTERFACE) | ||
target_include_directories(zstr INTERFACE src ${ZLIB_INCLUDE_DIRS}) | ||
target_link_libraries(zstr INTERFACE ${ZLIB_LIBRARIES}) | ||
|
||
message(STATUS "Adding zstr and ZLIB for ${PROJECT_NAME}: includes: ${CMAKE_CURRENT_SOURCE_DIR}/src ${ZLIB_INCLUDE_DIRS} and libraries: ${ZLIB_LIBRARIES}") | ||
|
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