forked from leosocy/EDCC-Palmprint-Recognition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindEDCC.cmake
32 lines (28 loc) · 852 Bytes
/
FindEDCC.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# EDCC Module
# Author: Leosocy
# Email: [email protected]
# Usage from an external project:
# In your CMakeLists.txt, add these lines:
#
# FIND_PACKAGE(EDCC REQUIRED)
# INCLUDE_DIRECTORIES(${EDCC_INCLUDE_DIRS})
# TARGET_LINK_LIBRARIES(MY_TARGET_NAME ${EDCC_LIBS})
SET(EDCC_VERSION 1.0.1)
SET(EDCC_VERSION_MAJOR 1)
SET(EDCC_VERSION_MINOR 0)
SET(EDCC_VERSION_PATCH 1)
FIND_PATH(EDCC_INCLUDE_DIRS edcc.h /usr/local/include/edcc /usr/include/edcc)
FIND_LIBRARY(EDCC_LIBS NAMES edcc PATH /usr/local/lib /usr/lib)
IF(EDCC_INCLUDE_DIRS AND EDCC_LIBS)
SET(EDCC_FOUND TRUE)
ENDIF()
IF(EDCC_FOUND)
IF(NOT EDCC_FIND_QUIETLY)
MESSAGE(STATUS "Found EDCC Headers: ${EDCC_INCLUDE_DIRS}")
MESSAGE(STATUS "Found EDCC Libs: ${EDCC_LIBS}")
ENDIF()
ELSE()
IF(EDCC_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Cound not find EDCC library!")
ENDIF()
ENDIF()