ZLMediaKit/cmake/FindZLTOOLKIT.cmake

19 lines
511 B
CMake
Raw Normal View History

2017-05-02 18:10:47 +08:00
find_path(ZLTOOLKIT_INCLUDE_DIR
2017-10-13 15:23:37 +08:00
NAMES Network/Socket.h
PATHS
2017-10-13 15:44:59 +08:00
${PROJECT_SOURCE_DIR}/../ZLToolKit/src
$ENV{HOME}/ZLToolKit/include)
2017-10-13 15:23:37 +08:00
2017-05-02 18:10:47 +08:00
find_library(ZLTOOLKIT_LIBRARY
2017-08-09 18:39:30 +08:00
NAMES ZLToolKit
2017-10-13 15:23:37 +08:00
PATHS
${PROJECT_SOURCE_DIR}/../ZLToolKit/build/lib
$ENV{HOME}/ZLToolKit/lib)
2017-05-02 18:10:47 +08:00
set(ZLTOOLKIT_LIBRARIES ${ZLTOOLKIT_LIBRARY})
set(ZLTOOLKIT_INCLUDE_DIRS ${ZLTOOLKIT_INCLUDE_DIR})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(ZLTOOLKIT DEFAULT_MSG ZLTOOLKIT_LIBRARY ZLTOOLKIT_INCLUDE_DIR)