Skip to content

Commit

Permalink
nifti 2022-07-27 (3aa22540)
Browse files Browse the repository at this point in the history
Code extracted from:

    https://github.com/NIFTI-Imaging/nifti_clib.git

at commit 3aa225403b0acc93f4b86f5eba2f7d2eed042267 (master).
  • Loading branch information
NIFTI Upstream authored and dzenanz committed Jul 28, 2022
1 parent af75181 commit af2ec74
Show file tree
Hide file tree
Showing 8 changed files with 209 additions and 59 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ include(CMakeDependentOption)

if("${CMAKE_VERSION}" VERSION_GREATER_EQUAL "3.13")
set(CMAKE_VER_AT_LEAST_3_13 1 CACHE BOOL "Is set for cmake >=3.13")
mark_as_advanced(CMAKE_VER_AT_LEAST_3_13)
endif()

# add option to build shared libraries. The default is OFF to maintain the
Expand Down
10 changes: 6 additions & 4 deletions cmake/nifti_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,12 @@ function(install_nifti_target target_name)
LIBRARY
DESTINATION ${NIFTI_INSTALL_LIBRARY_DIR}
COMPONENT RuntimeLibraries
COMPONENT Development
PUBLIC_HEADER DESTINATION ${NIFTI_INSTALL_INCLUDE_DIR}
COMPONENT Development
INCLUDES DESTINATION ${NIFTI_INSTALL_INCLUDE_DIR}
PUBLIC_HEADER
DESTINATION ${NIFTI_INSTALL_INCLUDE_DIR}
COMPONENT Development
INCLUDES
DESTINATION ${NIFTI_INSTALL_INCLUDE_DIR}
COMPONENT Development
)
endfunction()

Expand Down
4 changes: 2 additions & 2 deletions niftilib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ libniftiio.a: $(OBJS)
$(AR) -r libniftiio.a $(OBJS)
$(RANLIB) $@

nifti_tool: nifti_tool.c nifti_tool.h
$(CC) $(CFLAGS) -Wall -o nifti_tool nifti_tool.c $(NIFTI_INCS) $(ZNZ_INCS) $(NIFTI_LIBS) $(ZNZ_LIBS)
nifti1_tool: nifti1_tool.c nifti1_tool.h
$(CC) $(CFLAGS) -Wall -o nifti1_tool nifti1_tool.c $(NIFTI_INCS) $(ZNZ_INCS) $(NIFTI_LIBS) $(ZNZ_LIBS)

nifti1_test: nifti1_test.c
$(CC) $(CFLAGS) -o nifti1_test nifti1_test.c $(NIFTI_INCS) $(ZNZ_INCS) $(NIFTI_LIBS) $(ZNZ_LIBS)
Expand Down
Loading

0 comments on commit af2ec74

Please sign in to comment.