CMakeLists.txt
changeset 805 b462f06edbca
parent 804 45c29325e017
child 809 116b8fe30371
--- a/CMakeLists.txt	Sun Mar 11 08:56:23 2007 +0000
+++ b/CMakeLists.txt	Sun Mar 11 09:13:55 2007 +0000
@@ -7,6 +7,7 @@
 
 PROJECT(PhysicsFS)
 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!
 IF(WIN32 AND NOT WINDOWS)
@@ -246,6 +247,8 @@
 OPTION(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
 IF(PHYSFS_BUILD_SHARED)
     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})
     SET(PHYSFS_LIB_TARGET physfs)
     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")