This repository has been archived by the owner on Nov 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add json.c as a dependency, find cblosc2 in the cmakelists and add a …
…more complete cmakelists.txt
- Loading branch information
1 parent
22c03b6
commit a3f7faf
Showing
4 changed files
with
85 additions
and
2 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
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,3 @@ | ||
[submodule "third-party/json.h"] | ||
path = third-party/json.h | ||
url = https://github.com/sheredom/json.h.git |
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,33 @@ | ||
# FindBlosc2.cmake | ||
# Defines: | ||
# BLOSC2_FOUND - System has Blosc2 | ||
# BLOSC2_INCLUDE_DIRS - Blosc2 include directories | ||
# BLOSC2_LIBRARY - Blosc2 library | ||
# Blosc2::Blosc2 - Imported target | ||
|
||
find_path(BLOSC2_INCLUDE_DIRS | ||
NAMES blosc2.h | ||
PATHS ${BLOSC2_ROOT_DIR} | ||
PATH_SUFFIXES include | ||
) | ||
|
||
find_library(BLOSC2_LIBRARY | ||
NAMES blosc2 | ||
PATHS ${BLOSC2_ROOT_DIR} | ||
PATH_SUFFIXES lib lib64 | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(Blosc2 | ||
REQUIRED_VARS BLOSC2_LIBRARY BLOSC2_INCLUDE_DIRS | ||
) | ||
|
||
if(Blosc2_FOUND AND NOT TARGET Blosc2::Blosc2) | ||
add_library(Blosc2::Blosc2 UNKNOWN IMPORTED) | ||
set_target_properties(Blosc2::Blosc2 PROPERTIES | ||
IMPORTED_LOCATION "${BLOSC2_LIBRARY}" | ||
INTERFACE_INCLUDE_DIRECTORIES "${BLOSC2_INCLUDE_DIRS}" | ||
) | ||
endif() | ||
|
||
mark_as_advanced(BLOSC2_INCLUDE_DIRS BLOSC2_LIBRARY) |