Skip to content

Commit c1d8fa6

Browse files
committed
cmake: prepare FindEasyloggingpp module
1 parent de21292 commit c1d8fa6

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

cmake/FindEasyloggingpp.cmake

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# - Find Easyloggingpp
2+
# Find the native Easyloggingpp includes
3+
#
4+
# Easyloggingpp_INCLUDE_PATH - where to find the single header file
5+
# Easyloggingpp_FOUND - True if Easyloggingpp found.
6+
7+
if(Easyloggingpp_INCLUDE_PATH)
8+
# Already in cache, be silent
9+
set(Easyloggingpp_FIND_QUIETLY TRUE)
10+
endif(Easyloggingpp_INCLUDE_PATH)
11+
12+
find_path(Easyloggingpp_INCLUDE_PATH
13+
easylogging++.h
14+
PATH_SUFFIXES easyloggingpp
15+
)
16+
17+
# handle the QUIETLY and REQUIRED arguments and set Easyloggingpp_FOUND to TRUE if
18+
# all listed variables are TRUE
19+
include(FindPackageHandleStandardArgs)
20+
find_package_handle_standard_args(Easyloggingpp
21+
DEFAULT_MSG
22+
Easyloggingpp_INCLUDE_PATH
23+
)
24+
25+
mark_as_advanced(Easyloggingpp_INCLUDE_PATH)

0 commit comments

Comments
 (0)