Install libraries with a VERSION and SOVERSION.
This commit is contained in:
parent
e4a317401d
commit
902b7b9bae
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
03112007 - Removed zlib_license_change.txt ... it's in Subversion and the 1.0
|
03112007 - Removed zlib_license_change.txt ... it's in Subversion and the 1.0
|
||||||
branch for history's sake. Added shared and static build options
|
branch for history's sake. Added shared and static build options
|
||||||
to CMakeLists.txt
|
to CMakeLists.txt, and the expected "make install" target.
|
||||||
03082007 - Fixed a comment in physfs.h. Renamed win32.c to windows.c.
|
03082007 - Fixed a comment in physfs.h. Renamed win32.c to windows.c.
|
||||||
Cleaned up whitespace/formatting in pocketpc.c. Updated PocketPC
|
Cleaned up whitespace/formatting in pocketpc.c. Updated PocketPC
|
||||||
code to expect UTF-8 strings from the higher level. Changed
|
code to expect UTF-8 strings from the higher level. Changed
|
||||||
|
|
|
@ -7,6 +7,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
|
||||||
|
|
||||||
PROJECT(PhysicsFS)
|
PROJECT(PhysicsFS)
|
||||||
SET(PHYSFS_VERSION 1.1.2)
|
SET(PHYSFS_VERSION 1.1.2)
|
||||||
|
SET(PHYSFS_SOVERSION 1)
|
||||||
|
|
||||||
# I hate that they define "WIN32" ... we're about to move to Win64...I hope!
|
# I hate that they define "WIN32" ... we're about to move to Win64...I hope!
|
||||||
IF(WIN32 AND NOT WINDOWS)
|
IF(WIN32 AND NOT WINDOWS)
|
||||||
|
@ -246,6 +247,8 @@ ENDIF(PHYSFS_BUILD_STATIC)
|
||||||
OPTION(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
|
OPTION(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
|
||||||
IF(PHYSFS_BUILD_SHARED)
|
IF(PHYSFS_BUILD_SHARED)
|
||||||
ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
|
ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
|
||||||
|
SET_TARGET_PROPERTIES(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
|
||||||
|
SET_TARGET_PROPERTIES(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
|
||||||
TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
|
TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
|
||||||
SET(PHYSFS_LIB_TARGET physfs)
|
SET(PHYSFS_LIB_TARGET physfs)
|
||||||
SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
|
SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
|
||||||
|
|
Loading…
Reference in New Issue