mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-27 08:49:16 +08:00
15e4fdcbb4
re: https://github.com/Unidata/netcdf-c/issues/1347 It turns out that the plugin libraries (bzip2 and misc) were being installed as part of 'make installed'. This was not intended behavior. But after some discussion in the above issue, it was decided to install the bzip2 plugin. However, in order to avoid naming conflicts, the plugin is installed under the name 'libh5bzip2.so'. Note that this is automake behavior only; the install does not (yet) occur using cmake. Misc. unrelated changes ----------------------- 1. turn off some debug output in ncdump/Makefile.am
47 lines
1.8 KiB
CMake
47 lines
1.8 KiB
CMake
# Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
|
|
# 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014,
|
|
# 2015, 2016, 2017, 2018
|
|
# University Corporation for Atmospheric Research/Unidata.
|
|
|
|
# See netcdf-c/COPYRIGHT file for more info.
|
|
SET(CMAKE_BUILD_TYPE "")
|
|
|
|
SET(libh5bzip2_SOURCES blocksort.c huffman.c crctable.c randtable.c compress.c decompress.c bzlib.c H5Zbzip2.c)
|
|
|
|
SET(libmisc_SOURCES H5Zmisc.c H5Zutil.c h5misc.h)
|
|
|
|
IF(ENABLE_FILTER_TESTING)
|
|
IF(BUILD_UTILITIES)
|
|
|
|
# LDFLAGS = -module -avoid-version -shared -export-dynamic -no-undefined
|
|
|
|
IF(MSVC)
|
|
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
|
|
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG "${CMAKE_CURRENT_BINARY_DIR}")
|
|
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE "${CMAKE_CURRENT_BINARY_DIR}")
|
|
ENDIF()
|
|
|
|
# Note we use name test_bzip2 instead of bzip2 to avoid logical
|
|
# target name clash with examples/C/hdf5plugins
|
|
ADD_LIBRARY(test_bzip2 MODULE ${libh5bzip2_SOURCES})
|
|
SET_TARGET_PROPERTIES(test_bzip2 PROPERTIES OUTPUT_NAME "bzip2")
|
|
SET_TARGET_PROPERTIES(test_bzip2 PROPERTIES LIBRARY_OUTPUT_NAME "h5bzip2")
|
|
SET_TARGET_PROPERTIES(test_bzip2 PROPERTIES ARCHIVE_OUTPUT_NAME "h5bzip2")
|
|
SET_TARGET_PROPERTIES(test_bzip2 PROPERTIES RUNTIME_OUTPUT_NAME "h5bzip2")
|
|
TARGET_LINK_LIBRARIES(test_bzip2 ${ALL_TLL_LIBS})
|
|
|
|
ADD_LIBRARY(misc MODULE ${libmisc_SOURCES})
|
|
SET_TARGET_PROPERTIES(misc PROPERTIES LIBRARY_OUTPUT_NAME "misc")
|
|
SET_TARGET_PROPERTIES(misc PROPERTIES ARCHIVE_OUTPUT_NAME "misc")
|
|
SET_TARGET_PROPERTIES(misc PROPERTIES RUNTIME_OUTPUT_NAME "misc")
|
|
TARGET_LINK_LIBRARIES(misc ${ALL_TLL_LIBS})
|
|
|
|
ENDIF(BUILD_UTILITIES)
|
|
ENDIF(ENABLE_FILTER_TESTING)
|
|
|
|
# Copy some test files from current source dir to out-of-tree build dir.
|
|
FILE(COPY ${COPY_FILES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/)
|
|
IF(MSVC)
|
|
FILE(COPY ${COPY_FILES} DESTINATION ${RUNTIME_OUTPUT_DIRECTORY}/)
|
|
ENDIF()
|