File: Libraries.cmake

package info (click to toggle)
nvidia-texture-tools 2.0.8-1%2Bdfsg-8.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, trixie
  • size: 2,284 kB
  • sloc: cpp: 22,495; ansic: 1,097; sh: 61; makefile: 13
file content (8 lines) | stat: -rw-r--r-- 312 bytes parent folder | download | duplicates (7)
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})