mirror of
https://github.com/edubart/otclient.git
synced 2025-12-29 02:47:12 +01:00
A lot of cmake changes, fix compile on win32
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
# Try to find the physfs librairy
|
||||
# PHYSFS_FOUND - system has physfs
|
||||
# PHYSFS_INCLUDE_DIR - the physfs include directory
|
||||
# PHYSFS_LIBRARY - the physfs library
|
||||
# Try to find the PHYSFS library
|
||||
# PHYSFS_FOUND - system has PHYSFS
|
||||
# PHYSFS_INCLUDE_DIR - the PHYSFS include directory
|
||||
# PHYSFS_LIBRARY - the PHYSFS library
|
||||
|
||||
FIND_PATH(PHYSFS_INCLUDE_DIR physfs.h PATH_SUFFIXES physfs)
|
||||
FIND_LIBRARY(PHYSFS_LIBRARY NAMES libphysfs.a physfs)
|
||||
SET(_PHYSFS_STATIC_LIBS libphysfs.a)
|
||||
SET(_PHYSFS_SHARED_LIBS physfs.dll physfs)
|
||||
IF(USE_STATIC_LIBS)
|
||||
FIND_LIBRARY(PHYSFS_LIBRARY NAMES ${_PHYSFS_STATIC_LIBS} ${_PHYSFS_SHARED_LIBS})
|
||||
ELSE()
|
||||
FIND_LIBRARY(PHYSFS_LIBRARY NAMES ${_PHYSFS_SHARED_LIBS} ${_PHYSFS_STATIC_LIBS})
|
||||
ENDIF()
|
||||
INCLUDE(FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PhysFS DEFAULT_MSG PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
|
||||
MARK_AS_ADVANCED(PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PHYSFS DEFAULT_MSG PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
|
||||
MARK_AS_ADVANCED(PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
|
||||
Reference in New Issue
Block a user