misc/physfs/CMakeLists.txt
branchphysfslayer
changeset 7928 88fde28bbda6
parent 7778 3331b30e4ef1
child 8068 b35427506169
equal deleted inserted replaced
7778:3331b30e4ef1 7928:88fde28bbda6
   255 ENDIF(PHYSFS_ARCHIVE_ISO9660)
   255 ENDIF(PHYSFS_ARCHIVE_ISO9660)
   256 
   256 
   257 
   257 
   258 OPTION(PHYSFS_BUILD_STATIC "Build static library" TRUE)
   258 OPTION(PHYSFS_BUILD_STATIC "Build static library" TRUE)
   259 IF(PHYSFS_BUILD_STATIC)
   259 IF(PHYSFS_BUILD_STATIC)
   260     ADD_LIBRARY(physfs-static STATIC ${PHYSFS_SRCS})
   260     ADD_LIBRARY(physfs STATIC ${PHYSFS_SRCS})
   261     SET_TARGET_PROPERTIES(physfs-static PROPERTIES OUTPUT_NAME "physfs")
   261     SET_TARGET_PROPERTIES(physfs PROPERTIES OUTPUT_NAME "physfs")
   262     SET(PHYSFS_LIB_TARGET physfs-static)
       
   263     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
       
   264 ENDIF(PHYSFS_BUILD_STATIC)
       
   265 
       
   266 OPTION(PHYSFS_BUILD_SHARED "Build shared library" FALSE)
       
   267 IF(PHYSFS_BUILD_SHARED)
       
   268     ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
       
   269     SET_TARGET_PROPERTIES(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
       
   270     SET_TARGET_PROPERTIES(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
       
   271     TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
       
   272     SET(PHYSFS_LIB_TARGET physfs)
   262     SET(PHYSFS_LIB_TARGET physfs)
   273     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs")
   263     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs")
   274 ENDIF(PHYSFS_BUILD_SHARED)
   264 ENDIF(PHYSFS_BUILD_STATIC)
       
   265 
       
   266 #OPTION(PHYSFS_BUILD_SHARED "Build shared library" FALSE)
       
   267 #IF(PHYSFS_BUILD_SHARED)
       
   268 #    ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
       
   269 #    SET_TARGET_PROPERTIES(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
       
   270 #    SET_TARGET_PROPERTIES(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
       
   271 #    TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
       
   272 #    SET(PHYSFS_LIB_TARGET physfs)
       
   273 #    SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs")
       
   274 #ENDIF(PHYSFS_BUILD_SHARED)
   275 
   275 
   276 IF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
   276 IF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
   277     MESSAGE(FATAL "Both shared and static libraries are disabled!")
   277     MESSAGE(FATAL "Both shared and static libraries are disabled!")
   278 ENDIF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
   278 ENDIF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
   279 
   279