-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* include serd 0.30.16 dependency via conan * update how CMake handles conan * update boost to work with recent clang versions * reflect changes on Dockerfile * update README.MD
- Loading branch information
Showing
7 changed files
with
94 additions
and
36 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
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,27 @@ | ||
macro(boilerplate_init) | ||
## enforce standard compliance | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
|
||
## C++ compiler flags | ||
if (MSVC) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Wall") | ||
else () | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra") | ||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -O0") | ||
endif () | ||
|
||
## C++ language visibility configuration | ||
if (NOT DEFINED CMAKE_CXX_VISIBILITY_PRESET AND | ||
NOT DEFINED CMAKE_VISIBILITY_INLINES_HIDDEN) | ||
set(CMAKE_CXX_VISIBILITY_PRESET default) | ||
set(CMAKE_VISIBILITY_INLINES_HIDDEN NO) | ||
endif () | ||
|
||
# conan requires cmake build type to be specified and it is generally a good idea | ||
if (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/CMakeCache.txt) | ||
if (NOT CMAKE_BUILD_TYPE) | ||
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE) | ||
endif () | ||
endif () | ||
endmacro() |
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,27 @@ | ||
macro(install_packages_via_conan conanfile conan_options) | ||
|
||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_BINARY_DIR}) | ||
list(APPEND CMAKE_PREFIX_PATH ${CMAKE_BINARY_DIR}) | ||
|
||
|
||
if (NOT EXISTS "${CMAKE_BINARY_DIR}/conan.cmake") | ||
message(STATUS "Downloading conan.cmake from https://github.com/conan-io/cmake-conan") | ||
file(DOWNLOAD "https://raw.githubusercontent.com/conan-io/cmake-conan/0.18.1/conan.cmake" | ||
"${CMAKE_BINARY_DIR}/conan.cmake" | ||
TLS_VERIFY ON) | ||
endif () | ||
|
||
include(${CMAKE_BINARY_DIR}/conan.cmake) | ||
|
||
conan_cmake_autodetect(settings) | ||
conan_check(VERSION 1 DETECT_QUIET) | ||
if (CONAN_CMD) | ||
conan_cmake_install(PATH_OR_REFERENCE ${conanfile} | ||
BUILD missing | ||
SETTINGS ${settings} | ||
OPTIONS "${conan_options}" | ||
ENV_HOST "CC=${CMAKE_C_COMPILER};CXX=${CMAKE_CXX_COMPILER}") | ||
else () | ||
message(WARNING "No conan executable was found. Dependency retrieval via conan is disabled. System dependencies will be used if available.") | ||
endif () | ||
endmacro() |
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