forked from eclipse-ecal/ecal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Conan integration (eclipse-ecal#18)
* Add Conan dependencies for simpleini, tclap and asio * Add Conan protobuf package from bintray * Prepare CI build scripts for using Conan * Add spdlog from bincrafters * Add HDF5 package to conanfile.txt * Add own Qt5 Conan package (needed for WinExtras) * Add proto compiler as another dependency
- Loading branch information
1 parent
b580171
commit d26eacc
Showing
35 changed files
with
75 additions
and
106 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# CMake build folders | ||
/_build* | ||
/_setup | ||
/build* | ||
|
||
# autogenerated files | ||
/ecal/include/ecal/ecal_defs.h | ||
|
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ dist: xenial | |
|
||
language: cpp | ||
compiler: gcc | ||
|
||
addons: | ||
apt: | ||
sources: | ||
|
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
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
18 changes: 8 additions & 10 deletions
18
cmake/find_scripts/Findasio.cmake → cmake/Modules/Findasio.cmake
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
19 changes: 9 additions & 10 deletions
19
cmake/find_scripts/Findsimpleini.cmake → cmake/Modules/Findsimpleini.cmake
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 |
---|---|---|
@@ -1,29 +1,28 @@ | ||
find_path(simpleini_INCLUDE_DIR | ||
NAMES SimpleIni.h | ||
PATHS | ||
include | ||
${CMAKE_SOURCE_DIR}/thirdparty/simpleini | ||
) | ||
HINTS | ||
include | ||
${CONAN_SIMPLEINI_ROOT}/include | ||
${CMAKE_SOURCE_DIR}/thirdparty/simpleini | ||
) | ||
|
||
if(simpleini_INCLUDE_DIR-NOTFOUND) | ||
message(FATAL_ERROR "Could not find simpleini library") | ||
set(simpleini_FOUND False) | ||
set(simpleini_FOUND FALSE) | ||
else() | ||
set(simpleini_FOUND True) | ||
set(simpleini_FOUND TRUE) | ||
endif() | ||
|
||
if(simpleini_FOUND) | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(simpleini | ||
REQUIRED_VARS simpleini_INCLUDE_DIR | ||
) | ||
REQUIRED_VARS simpleini_INCLUDE_DIR) | ||
|
||
if(NOT TARGET simpleini::simpleini) | ||
set(simpleini_INCLUDE_DIRS ${simpleini_INCLUDE_DIR}) | ||
|
||
add_library(simpleini::simpleini INTERFACE IMPORTED) | ||
set_target_properties(simpleini::simpleini PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES ${simpleini_INCLUDE_DIR}) | ||
mark_as_advanced(simpleini_INCLUDE_DIR) | ||
endif() | ||
endif() | ||
endif() |
19 changes: 9 additions & 10 deletions
19
cmake/find_scripts/Findtclap.cmake → cmake/Modules/Findtclap.cmake
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 |
---|---|---|
@@ -1,29 +1,28 @@ | ||
find_path(tclap_INCLUDE_DIR | ||
NAMES tclap/Arg.h | ||
PATHS | ||
include | ||
${CMAKE_SOURCE_DIR}/thirdparty/tclap/include | ||
) | ||
HINTS | ||
include | ||
${CONAN_TCLAP_ROOT}/include | ||
${CMAKE_SOURCE_DIR}/thirdparty/tclap/include | ||
) | ||
|
||
if(tclap_INCLUDE_DIR-NOTFOUND) | ||
message(FATAL_ERROR "Could not find tclap library") | ||
set(tclap_FOUND False) | ||
set(tclap_FOUND FALSE) | ||
else() | ||
set(tclap_FOUND True) | ||
set(tclap_FOUND TRUE) | ||
endif() | ||
|
||
if(tclap_FOUND) | ||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(tclap | ||
REQUIRED_VARS tclap_INCLUDE_DIR | ||
) | ||
REQUIRED_VARS tclap_INCLUDE_DIR) | ||
|
||
if(NOT TARGET tclap::tclap) | ||
set(tclap_INCLUDE_DIRS ${tclap_INCLUDE_DIR}) | ||
|
||
add_library(tclap::tclap INTERFACE IMPORTED) | ||
set_target_properties(tclap::tclap PROPERTIES | ||
INTERFACE_INCLUDE_DIRECTORIES ${tclap_INCLUDE_DIR}) | ||
mark_as_advanced(tclap_INCLUDE_DIRS) | ||
endif() | ||
endif() | ||
endif() |
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,13 @@ | ||
[requires] | ||
Qt/5.12.4@kwc_bintray/stable | ||
protobuf/3.5.1@bincrafters/stable | ||
protoc_installer/3.5.1@bincrafters/stable | ||
spdlog/0.16.3@kwc_bintray/stable | ||
|
||
tclap/1.2.2@kwc_bintray/stable | ||
simpleini/4.17@kwc_bintray/stable | ||
asio/1.14.0@kwc_bintray/stable | ||
hdf5/1.8.21@kwc_bintray/stable | ||
|
||
[generators] | ||
cmake_paths |
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
Oops, something went wrong.