You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
728 B
23 lines
728 B
3 months ago
|
###############################################################################
|
||
|
# Find cereal
|
||
|
#
|
||
|
# This sets the following variables:
|
||
|
# CEREAL_FOUND - True if Cereal was found.
|
||
|
# CEREAL_INCLUDE_DIRS - Directories containing the Cereal include files.
|
||
|
# CEREAL_DEFINITIONS - Compiler flags for Cereal.
|
||
|
|
||
|
find_path(CEREAL_INCLUDE_DIR cereal
|
||
|
HINTS "$ENV{CEREAL_ROOT}/include" "/usr/include" "$ENV{PROGRAMFILES}/cereal/include")
|
||
|
|
||
|
set(CEREAL_INCLUDE_DIRS ${CEREAL_INCLUDE_DIR})
|
||
|
|
||
|
include(FindPackageHandleStandardArgs)
|
||
|
find_package_handle_standard_args(cereal DEFAULT_MSG CEREAL_INCLUDE_DIR)
|
||
|
|
||
|
mark_as_advanced(CEREAL_INCLUDE_DIR)
|
||
|
|
||
|
if(CEREAL_FOUND)
|
||
|
message(STATUS "cereal found (include: ${CEREAL_INCLUDE_DIRS})")
|
||
|
endif(CEREAL_FOUND)
|
||
|
|