Added nc4print utility to cmake build infrastructure.
@@ -25,6 +25,11 @@ ADD_EXECUTABLE(ncdump ${ncdump_FILES})
ADD_EXECUTABLE(nccopy ${nccopy_FILES})
ADD_EXECUTABLE(ncvalidator ${ncvalidator_FILES})
+IF(USE_HDF5)
+ SET(nc4print_FILES nc4print.c)
+ ADD_EXECUTABLE(nc4print ${nc4print_FILES})
+ENDIF(USE_HDF5)
+
IF(ENABLE_DAP)
ADD_EXECUTABLE(ocprint ${ocprint_FILES})
ENDIF(ENABLE_DAP)
@@ -65,6 +70,16 @@ IF(MSVC)
SET_TARGET_PROPERTIES(ncvalidator PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE
${CMAKE_CURRENT_BINARY_DIR})
+ IF(USE_HDF5)
+
+ SET_TARGET_PROPERTIES(ncvalidator PROPERTIES RUNTIME_OUTPUT_DIRECTORY
+ ${CMAKE_CURRENT_BINARY_DIR})
+ SET_TARGET_PROPERTIES(ncvalidator PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG
+ ${CMAKE_CURRENT_BINARY_DIR})
+ SET_TARGET_PROPERTIES(ncvalidator PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE
+ ${CMAKE_CURRENT_BINARY_DIR})
+ ENDIF(USE_HDF5)
+
IF(ENABLE_DAP)
SET_TARGET_PROPERTIES(ocprint PROPERTIES RUNTIME_OUTPUT_DIRECTORY
${CMAKE_CURRENT_BINARY_DIR})
