mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
config manager using yaml
logger improvements more documentation
This commit is contained in:
40
cmake/FindYamlCpp.cmake
Normal file
40
cmake/FindYamlCpp.cmake
Normal file
@@ -0,0 +1,40 @@
|
||||
# - Try to find yaml-cpp
|
||||
# Once done, this will define
|
||||
#
|
||||
# YAMLCPP_LIBRARY, link these to use yaml-cpp
|
||||
# YAMLCPP_FOUND - system has yaml-cpp
|
||||
# YAMLCPP_INCLUDE_DIR, the yaml-cpp include directories
|
||||
|
||||
FIND_PATH(YAMLCPP_INCLUDE_DIR yaml-cpp/yaml.h
|
||||
HINTS
|
||||
$ENV{PHYSFSDIR}
|
||||
PATH_SUFFIXES include/yaml-cpp include
|
||||
PATHS
|
||||
~/Library/Frameworks
|
||||
/Library/Frameworks
|
||||
/usr/local
|
||||
/usr
|
||||
/sw # Fink
|
||||
/opt/local # DarwinPorts
|
||||
/opt/csw # Blastwave
|
||||
/opt
|
||||
)
|
||||
|
||||
FIND_LIBRARY(YAMLCPP_LIBRARY
|
||||
NAMES yaml-cpp
|
||||
HINTS
|
||||
$ENV{PHYSFSDIR}
|
||||
PATH_SUFFIXES lib64 lib
|
||||
PATHS
|
||||
~/Library/Frameworks
|
||||
/Library/Frameworks
|
||||
/usr/local
|
||||
/usr
|
||||
/sw
|
||||
/opt/local
|
||||
/opt/csw
|
||||
/opt
|
||||
)
|
||||
|
||||
INCLUDE("${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake")
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(YamlCpp DEFAULT_MSG YAMLCPP_LIBRARY YAMLCPP_INCLUDE_DIR)
|
Reference in New Issue
Block a user