Browse Source

physfs 2.0.3: Add target_include_directories.

rude 12 years ago
parent
commit
7244cf3a00
1 changed files with 2 additions and 0 deletions
  1. 2 0
      libs/physfs-2.0.3/CMakeLists.txt

+ 2 - 0
libs/physfs-2.0.3/CMakeLists.txt

@@ -276,6 +276,7 @@ IF(PHYSFS_BUILD_STATIC)
     ADD_LIBRARY(physfs-static STATIC ${PHYSFS_SRCS})
     SET_TARGET_PROPERTIES(physfs-static PROPERTIES OUTPUT_NAME "physfs")
     TARGET_LINK_LIBRARIES(physfs-static ${OPTIONAL_LIBRARY_LIBS})
+    TARGET_INCLUDE_DIRECTORIES(physfs-static PUBLIC .)
     SET(PHYSFS_LIB_TARGET physfs-static)
     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs-static")
 ENDIF(PHYSFS_BUILD_STATIC)
@@ -286,6 +287,7 @@ IF(PHYSFS_BUILD_SHARED)
     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_INCLUDE_DIRECTORIES(physfs PUBLIC .)
     SET(PHYSFS_LIB_TARGET physfs)
     SET(PHYSFS_INSTALL_TARGETS ${PHYSFS_INSTALL_TARGETS} ";physfs")
 ENDIF(PHYSFS_BUILD_SHARED)