Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# - Try to find Cereal Serialization Library | ||
# | ||
# This sets the following variables: | ||
# CEREAL_FOUND - True if Cereal was found. | ||
# CEREAL_INCLUDE_DIRS - Directories containing the Cereal include files. | ||
|
||
find_path(CEREAL_INCLUDE_DIR cereal | ||
HINTS "$ENV{CMAKE_SOURCE_DIR}/include" "/usr/include" "$ENV{CMAKE_BINARY_DIR}/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 "Found Cereal: ${CEREAL_INCLUDE_DIRS}") | ||
endif(CEREAL_FOUND) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
include(ExternalProject) | ||
ExternalProject_Add( | ||
Cereal | ||
PREFIX ${CMAKE_BINARY_DIR}/Cereal | ||
DOWNLOAD_DIR ${THIRD_PARTY_DIR}/Cereal | ||
URL https://github.com/USCiLab/cereal/archive/v1.1.2.tar.gz | ||
URL_MD5 34d4ad174acbff005c36d4d10e48cbb9 | ||
CMAKE_ARGS -DCMAKE_C_FLAGS:STRING=${CMAKE_C_FLAGS}${CMAKE_DEFINITIONS} | ||
-DCMAKE_CXX_FLAGS:STRING=${CMAKE_CXX_FLAGS}${CMAKE_DEFINITIONS} | ||
INSTALL_COMMAND "" | ||
) | ||
|
||
SET(CEREAL_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/Cereal/src/Cereal/include) | ||
LIST(APPEND SHOGUN_DEPENDS Cereal) |