Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
VILLASnode
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
ACS
P
Public
VILLASframework
VILLASnode
Commits
3534f492
Commit
3534f492
authored
Dec 04, 2020
by
Steffen Vogel
🎅🏼
Committed by
Steffen Vogel
Dec 07, 2020
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: use pkg-config for detecting libmosquitto
parent
8ad73f7e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
44 deletions
+2
-44
CMakeLists.txt
CMakeLists.txt
+1
-2
cmake/FindMosquitto.cmake
cmake/FindMosquitto.cmake
+0
-40
lib/nodes/CMakeLists.txt
lib/nodes/CMakeLists.txt
+1
-2
No files found.
CMakeLists.txt
View file @
3534f492
...
...
@@ -81,7 +81,6 @@ endif()
# Check packages
find_package
(
PkgConfig REQUIRED
)
find_package
(
Threads REQUIRED
)
find_package
(
Mosquitto
)
find_package
(
Opal
)
find_package
(
IBVERBS
)
find_package
(
RDMACM
)
...
...
@@ -108,6 +107,7 @@ pkg_check_modules(CRITERION IMPORTED_TARGET criterion>=2.3.1)
pkg_check_modules
(
LIBNL3_ROUTE IMPORTED_TARGET libnl-route-3.0>=3.2.27
)
pkg_check_modules
(
LIBIEC61850 IMPORTED_TARGET libiec61850>=1.2
)
pkg_check_modules
(
LIBCONFIG IMPORTED_TARGET libconfig>=1.4.9
)
pkg_check_modules
(
MOSQUITTO IMPORTED_TARGET mosquitto>=1.6.10
)
pkg_check_modules
(
RABBITMQ_C IMPORTED_TARGET librabbitmq>=0.8.0
)
pkg_check_modules
(
COMEDILIB IMPORTED_TARGET comedilib>=0.11.0
)
pkg_check_modules
(
LIBZMQ IMPORTED_TARGET libzmq>=2.2.0
)
...
...
@@ -116,7 +116,6 @@ pkg_check_modules(UUID IMPORTED_TARGET REQUIRED uuid>=2.23)
pkg_check_modules
(
CGRAPH IMPORTED_TARGET libcgraph>=2.30
)
pkg_check_modules
(
GVC IMPORTED_TARGET libgvc>=2.30
)
pkg_check_modules
(
NANOMSG IMPORTED_TARGET nanomsg
)
pkg_check_modules
(
XIL IMPORTED_TARGET libxil
)
if
(
NOT NANOMSG_FOUND
)
pkg_check_modules
(
NANOMSG IMPORTED_TARGET libnanomsg>=1.0.0
)
endif
()
...
...
cmake/FindMosquitto.cmake
deleted
100644 → 0
View file @
8ad73f7e
# CMakeLists.txt.
#
# @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
# @copyright 2014-2020, Institute for Automation of Complex Power Systems, EONERC
# @license GNU General Public License (version 3)
#
# VILLASnode
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
###################################################################################
find_path
(
MOSQUITTO_INCLUDE_DIR
NAMES mosquitto.h
)
find_library
(
MOSQUITTO_LIBRARY
NAMES mosquitto
)
include
(
FindPackageHandleStandardArgs
)
# handle the QUIETLY and REQUIRED arguments and set VILLASNODE_FOUND to TRUE
# if all listed variables are TRUE
find_package_handle_standard_args
(
Mosquitto DEFAULT_MSG
MOSQUITTO_LIBRARY MOSQUITTO_INCLUDE_DIR
)
mark_as_advanced
(
MOSQUITTO_INCLUDE_DIR MOSQUITTO_LIBRARY
)
set
(
MOSQUITTO_LIBRARIES
${
MOSQUITTO_LIBRARY
}
)
set
(
MOSQUITTO_INCLUDE_DIRS
${
MOSQUITTO_INCLUDE_DIR
}
)
lib/nodes/CMakeLists.txt
View file @
3534f492
...
...
@@ -125,8 +125,7 @@ endif()
# Enable MQTT support
if
(
WITH_NODE_MQTT
)
list
(
APPEND NODE_SRC mqtt.cpp
)
list
(
APPEND INCLUDE_DIRS
${
MOSQUITTO_INCLUDE_DIRS
}
)
list
(
APPEND LIBRARIES
${
MOSQUITTO_LIBRARIES
}
)
list
(
APPEND LIBRARIES PkgConfig::MOSQUITTO
)
endif
()
# Enable Comedi support
...
...
Markus Mirz
@markus.mirz
mentioned in issue
#285 (closed)
·
Jan 05, 2021
mentioned in issue
#285 (closed)
mentioned in issue #285
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment