File: Libraries.cmake

package info (click to toggle)
nvidia-texture-tools 2.1.0-git20160229%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 4,016 kB
  • sloc: cpp: 43,200; ansic: 22,635; sh: 67; makefile: 14
file content (8 lines) | stat: -rw-r--r-- 322 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
file(READ "VERSION" VERSION)

string(REGEX REPLACE "([0-9]).*" "\\1" MAJOR ${VERSION})
string(REGEX REPLACE "[0-9].([0-9]).*" "\\1" MINOR ${VERSION})
string(REGEX REPLACE ".*([0-9])\n$" "\\1" MAINTENANCE ${VERSION})

set(GENERIC_LIB_VERSION "${MAJOR}.${MINOR}.${MAINTENANCE}")
set(GENERIC_LIB_SOVERSION ${MAJOR}.${MINOR})