-
Notifications
You must be signed in to change notification settings - Fork 71
/
FindWiiuse.cmake
32 lines (25 loc) · 1021 Bytes
/
FindWiiuse.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
# _____________________________________________________________________________
#
# WIIUSE
# _____________________________________________________________________________
# PATH ________________________________________________________________________
if(NOT WIIUSE_PATH)
find_path(WIIUSE_PATH include/wiiuse.h
HINTS ${WIIUSE_ROOT} $ENV{WIIUSE_ROOT}
/usr/local/
/usr/)
endif()
# HEADERS _____________________________________________________________________
if(WIIUSE_PATH)
set (WIIUSE_INCLUDE_DIR ${WIIUSE_PATH}/include)
mark_as_advanced (WIIUSE_INCLUDE_DIR)
endif()
# STATIC LIBRARY ______________________________________________________________
if(WIIUSE_PATH)
find_library(WIIUSE_LIBRARIES NAMES wiiuse
HINTS ${WIIUSE_ROOT} $ENV{WIIUSE_ROOT}
PATHS ${WIIUSE_PATH}/lib)
mark_as_advanced(WIIUSE_LIBRARIES)
endif()
find_package_handle_standard_args(Wiiuse DEFAULT_MSG
WIIUSE_LIBRARIES WIIUSE_INCLUDE_DIR)