You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by ms...@apache.org on 2019/05/10 13:43:37 UTC

[plc4x] 08/09: CMakelists with central import of Boost

This is an automated email from the ASF dual-hosted git repository.

msommer pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit bfe56b0796a1d7dc5c2617a5a12b08795d4a90a5
Author: Markus Sommer <ms...@apache.org>
AuthorDate: Fri May 10 15:30:42 2019 +0200

    CMakelists with central import of Boost
---
 plc4cpp/CMakeLists.txt | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/plc4cpp/CMakeLists.txt b/plc4cpp/CMakeLists.txt
index c0fdfef..b8ef0e3 100644
--- a/plc4cpp/CMakeLists.txt
+++ b/plc4cpp/CMakeLists.txt
@@ -24,10 +24,24 @@ set(CMAKE_CXX_EXTENSIONS OFF)
 
 set(PLC4CPP_ROOT_DIR ${CMAKE_SOURCE_DIR})
 
+set(BOOST_ROOT "./libs/boost/target/boost_1_70_0/")
+set(Boost_USE_STATIC_LIBS ON)
+set(Boost_USE_MULTITHREADED ON)
+find_package(Boost COMPONENTS filesystem log REQUIRED)
+
+#[[ Trace CMAKE Variable ]]
+get_cmake_property(_variableNames VARIABLES)
+list (SORT _variableNames)
+foreach (_variableName ${_variableNames})
+    message(STATUS "${_variableName}=${${_variableName}}")
+endforeach()
+
 
 #[[
     Build all the modules of PLC4Cpp
 ]]
 add_subdirectory(api)
 add_subdirectory(protocols/driver-bases/base)
-add_subdirectory(utils/logger)
\ No newline at end of file
+add_subdirectory(drivers/s7)
+add_subdirectory(utils)
+add_subdirectory(examples/hello-world-plc4x)
\ No newline at end of file