ZLMediaKit/cmake/FindZLTOOLKIT.cmake

15 lines
427 B
CMake
Raw Normal View History

2017-05-02 18:10:47 +08:00
find_path(ZLTOOLKIT_INCLUDE_DIR
2017-08-09 18:39:30 +08:00
NAMES ZLToolKit/Network/Socket.h
PATHS $ENV{HOME}/ZLToolKit/include)
2017-05-02 18:10:47 +08:00
find_library(ZLTOOLKIT_LIBRARY
2017-08-09 18:39:30 +08:00
NAMES ZLToolKit
PATHS $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)