FindZLTOOLKIT.cmake 511 Bytes
Newer Older
xiongziliang committed
1
find_path(ZLTOOLKIT_INCLUDE_DIR
xiongziliang committed
2 3
  NAMES Network/Socket.h
  PATHS 
xiongziliang committed
4 5
  ${PROJECT_SOURCE_DIR}/../ZLToolKit/src
  $ENV{HOME}/ZLToolKit/include)
xiongziliang committed
6

xiongziliang committed
7
find_library(ZLTOOLKIT_LIBRARY
8
  NAMES ZLToolKit
xiongziliang committed
9 10 11 12
  PATHS 
  ${PROJECT_SOURCE_DIR}/../ZLToolKit/build/lib
  $ENV{HOME}/ZLToolKit/lib)

xiongziliang committed
13 14 15 16 17 18
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)