Automatic files detection

This commit is contained in:
Guillaume Fraux 2015-06-05 16:33:32 +02:00
parent c4c5a5032a
commit 39f78cff86
2 changed files with 4 additions and 9 deletions

View File

@ -3,16 +3,11 @@
INCLUDE_DIRECTORIES(".")
###
# Set up headers.
# Set up headers and sources
###
SET(CXX_HEADERS ncAtt.h ncCheck.h ncDim.h ncException.h ncGroup.h ncOpaqueType.h ncVar.h ncVlenType.h ncCompoundType.h ncEnumType.h ncFile.h ncGroupAtt.h ncType.h ncVarAtt.h ncByte.h ncChar.h ncShort.h ncInt.h ncFloat.h ncDouble.h ncUbyte.h ncUshort.h ncUint.h ncInt64.h ncUint64.h ncString.h)
###
# Set up sources.
###
SET(CXX_SOURCES ncAtt.cpp ncCheck.cpp ncCompoundType.cpp ncDim.cpp ncEnumType.cpp ncException.cpp ncFile.cpp ncGroup.cpp ncGroupAtt.cpp ncOpaqueType.cpp ncType.cpp ncVar.cpp ncVarAtt.cpp ncVlenType.cpp ncByte.cpp ncChar.cpp ncShort.cpp ncInt.cpp ncFloat.cpp ncDouble.cpp ncUbyte.cpp ncUshort.cpp ncUint.cpp ncInt64.cpp ncUint64.cpp ncString.cpp)
file(GLOB CXX_HEADERS *.h)
file(GLOB CXX_SOURCES nc*.cpp)
###
# Set up tests.
@ -30,7 +25,7 @@ IF(NCXX_ENABLE_TESTS)
ENDIF()
ADD_LIBRARY(netcdf-cxx4 ${CXX_HEADERS} ${CXX_SOURCES})
ADD_LIBRARY(netcdf-cxx4 ${CXX_SOURCES})
TARGET_LINK_LIBRARIES(netcdf-cxx4 ${NETCDF_C_LIBRARY} ${EXTRA_DEPS})
SET_TARGET_PROPERTIES(netcdf-cxx4 PROPERTIES
VERSION ${NCXX_LIB_VERSION}