mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 08:39:34 +08:00
23 lines
615 B
CMake
23 lines
615 B
CMake
find_path(ZLTOOLKIT_INCLUDE_DIR
|
|
NAMES Network/Socket.h
|
|
PATHS
|
|
${PROJECT_SOURCE_DIR}/../ZLToolKit/build/include
|
|
$ENV{HOME}/ZLToolKit/include/ZLToolKit)
|
|
|
|
message(STATUS "${ZLTOOLKIT_INCLUDE_DIR}")
|
|
|
|
find_library(ZLTOOLKIT_LIBRARY
|
|
NAMES ZLToolKit
|
|
PATHS
|
|
${PROJECT_SOURCE_DIR}/../ZLToolKit/build/lib
|
|
$ENV{HOME}/ZLToolKit/lib)
|
|
|
|
message(STATUS "${ZLTOOLKIT_LIBRARY}")
|
|
|
|
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)
|