CMakeLists.txt
changeset 833 b260f190aa59
parent 827 53779f3e6781
child 836 6514fba91816
equal deleted inserted replaced
832:adef86dfc331 833:b260f190aa59
   266 OPTION(PHYSFS_BUILD_STATIC "Build static library" TRUE)
   266 OPTION(PHYSFS_BUILD_STATIC "Build static library" TRUE)
   267 IF(PHYSFS_BUILD_STATIC)
   267 IF(PHYSFS_BUILD_STATIC)
   268     ADD_LIBRARY(physfs-static STATIC ${PHYSFS_SRCS})
   268     ADD_LIBRARY(physfs-static STATIC ${PHYSFS_SRCS})
   269     SET_TARGET_PROPERTIES(physfs-static PROPERTIES OUTPUT_NAME "physfs")
   269     SET_TARGET_PROPERTIES(physfs-static PROPERTIES OUTPUT_NAME "physfs")
   270     SET(PHYSFS_LIB_TARGET physfs-static)
   270     SET(PHYSFS_LIB_TARGET physfs-static)
   271     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs")
   271     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
   272 ENDIF(PHYSFS_BUILD_STATIC)
   272 ENDIF(PHYSFS_BUILD_STATIC)
   273 
   273 
   274 OPTION(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
   274 OPTION(PHYSFS_BUILD_SHARED "Build shared library" TRUE)
   275 IF(PHYSFS_BUILD_SHARED)
   275 IF(PHYSFS_BUILD_SHARED)
   276     ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
   276     ADD_LIBRARY(physfs SHARED ${PHYSFS_SRCS})
   277     SET_TARGET_PROPERTIES(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
   277     SET_TARGET_PROPERTIES(physfs PROPERTIES VERSION ${PHYSFS_VERSION})
   278     SET_TARGET_PROPERTIES(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
   278     SET_TARGET_PROPERTIES(physfs PROPERTIES SOVERSION ${PHYSFS_SOVERSION})
   279     TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
   279     TARGET_LINK_LIBRARIES(physfs ${OPTIONAL_LIBRARY_LIBS} ${OTHER_LDFLAGS})
   280     SET(PHYSFS_LIB_TARGET physfs)
   280     SET(PHYSFS_LIB_TARGET physfs)
   281     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
   281     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs")
   282 ENDIF(PHYSFS_BUILD_SHARED)
   282 ENDIF(PHYSFS_BUILD_SHARED)
   283 
   283 
   284 IF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
   284 IF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
   285     MESSAGE(FATAL "Both shared and static libraries are disabled!")
   285     MESSAGE(FATAL "Both shared and static libraries are disabled!")
   286 ENDIF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)
   286 ENDIF(NOT PHYSFS_BUILD_SHARED AND NOT PHYSFS_BUILD_STATIC)