-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed build, primarily by having C++ API be statically linked. --------- Co-authored-by: Justin Eskesen <[email protected]>
- Loading branch information
Showing
9 changed files
with
93 additions
and
22 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
Submodule acquire-common
updated
4 files
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,24 @@ | ||
project(acquire-zarr-cpp-api-examples) | ||
|
||
#set(tgt acquire-zarr-cpp) | ||
set(ACQUIRE_API_INCLUDE_FILE ${CMAKE_CURRENT_SOURCE_DIR}/include/acquire-zarr/acquire-zarr.hh) | ||
|
||
set(examples | ||
simple | ||
) | ||
|
||
foreach (name ${examples}) | ||
set(tgt "${name}") | ||
add_executable(${name} ${name}.cpp) | ||
|
||
set_target_properties(${tgt} PROPERTIES | ||
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>" | ||
) | ||
target_include_directories(${tgt} PRIVATE "${acquire-zarr-cpp-api_SOURCE_DIR}/include") | ||
target_link_libraries(${tgt} | ||
acquire-zarr-cpp | ||
) | ||
|
||
#add_test(NAME test-${tgt} COMMAND ${tgt}) | ||
#set_tests_properties(test-${tgt} PROPERTIES LABELS "anyplatform;acquire-driver-zarr") | ||
endforeach () |
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,27 @@ | ||
#include <acquire-zarr/acquire-zarr.hh> | ||
#include <iostream> | ||
|
||
int main() { | ||
// Create a new instance of the AcquireZarr class | ||
AcquireZarrWriter writer; | ||
|
||
writer.set_uri("simple.zarr"); | ||
writer.set_use_v3(false); | ||
writer.set_dimensions({"x","y","t"}); | ||
writer.set_dimension_sizes({64,64,0}); | ||
writer.set_chunk_sizes({64,64,1}); | ||
writer.set_shard_sizes({64,64,1}); | ||
writer.set_enable_multiscale(false); | ||
writer.set_compression_codec(AcquireZarrCompressionCodec::COMPRESSION_NONE); | ||
writer.set_compression_level(0); | ||
writer.set_pixel_scale_x(1.0); | ||
writer.set_pixel_scale_y(1.0); | ||
writer.set_first_frame_id(0); | ||
//writer.setExternalMetadata("{metadata}"); | ||
|
||
writer.start(); | ||
|
||
writer.stop(); | ||
|
||
return 0; | ||
} |
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,6 +2,7 @@ | |
#define ACQUIRE_ZARR_HH | ||
|
||
#include <memory> | ||
#include <string> | ||
#include <vector> | ||
|
||
|
||
|
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