This commit is contained in:
Ward Fisher 2013-05-08 16:44:19 +00:00
parent 77f9dbf3ad
commit 17523e91c9
2 changed files with 4 additions and 1 deletions

View File

@ -5,12 +5,15 @@ cmake_minimum_required(VERSION 2.8.8)
#Project Name
project(netCDF C)
set(PACKAGE "netCDF" CACHE STRING "")
#Project Version
SET(netCDF_VERSION_MAJOR 4)
SET(netCDF_VERSION_MINOR 3)
SET(netCDF_VERSION_PATCH 0)
SET(netCDF_VERSION_NOTE "")
SET(netCDF_VERSION ${netCDF_VERSION_MAJOR}.${netCDF_VERSION_MINOR}.${netCDF_VERSION_PATCH}${netCDF_VERSION_NOTE})
SET(VERSION ${netCDF_VERSION})
#Library .so version.
SET(netCDF_SO_VERSION 7.0.2)
# Set some default C Flags if we are using GCC
IF(CMAKE_COMPILER_IS_GNUCC)

View File

@ -72,7 +72,7 @@ ENDIF()
SET_TARGET_PROPERTIES(netcdf PROPERTIES
VERSION ${netCDF_VERSION}
SOVERSION ${netCDF_VERSION_MAJOR})
SOVERSION ${netCDF_SO_VERSION})
INSTALL(TARGETS netcdf EXPORT netcdf-targets RUNTIME DESTINATION bin COMPONENT libraries
LIBRARY DESTINATION lib COMPONENT libraries