CMakeLists.txt
changeset 805 b462f06edbca
parent 804 45c29325e017
child 809 116b8fe30371
equal deleted inserted replaced
804:45c29325e017 805:b462f06edbca
     5 
     5 
     6 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
     6 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
     7 
     7 
     8 PROJECT(PhysicsFS)
     8 PROJECT(PhysicsFS)
     9 SET(PHYSFS_VERSION 1.1.2)
     9 SET(PHYSFS_VERSION 1.1.2)
       
    10 SET(PHYSFS_SOVERSION 1)
    10 
    11 
    11 # I hate that they define "WIN32" ... we're about to move to Win64...I hope!
    12 # I hate that they define "WIN32" ... we're about to move to Win64...I hope!
    12 IF(WIN32 AND NOT WINDOWS)
    13 IF(WIN32 AND NOT WINDOWS)
    13     SET(WINDOWS TRUE)
    14     SET(WINDOWS TRUE)
    14 ENDIF(WIN32 AND NOT WINDOWS)
    15 ENDIF(WIN32 AND NOT WINDOWS)
   244 ENDIF(PHYSFS_BUILD_STATIC)
   245 ENDIF(PHYSFS_BUILD_STATIC)
   245 
   246 
   246 OPTION(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
   247 OPTION(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
   247 IF(PHYSFS_BUILD_SHARED)
   248 IF(PHYSFS_BUILD_SHARED)
   248     ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
   249     ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
       
   250     SET_TARGET_PROPERTIES(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
       
   251     SET_TARGET_PROPERTIES(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
   249     TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
   252     TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
   250     SET(PHYSFS_LIB_TARGET physfs)
   253     SET(PHYSFS_LIB_TARGET physfs)
   251     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
   254     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
   252 ENDIF(PHYSFS_BUILD_SHARED)
   255 ENDIF(PHYSFS_BUILD_SHARED)
   253 
   256