Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
paho.mqtt.c
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eclipse
paho.mqtt.c
Commits
a87450eb
Commit
a87450eb
authored
Sep 20, 2017
by
Ian Craggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Label test project as C; add flag to disable test build & run #331
parent
f32842c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
CMakeLists.txt
CMakeLists.txt
+8
-4
CMakeLists.txt
test/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
a87450eb
...
...
@@ -48,6 +48,7 @@ SET(PAHO_BUILD_STATIC FALSE CACHE BOOL "Build static library")
SET
(
PAHO_BUILD_DOCUMENTATION FALSE CACHE BOOL
"Create and install the HTML based API documentation (requires Doxygen)"
)
SET
(
PAHO_BUILD_SAMPLES FALSE CACHE BOOL
"Build sample programs"
)
SET
(
PAHO_BUILD_DEB_PACKAGE FALSE CACHE BOOL
"Build debian package"
)
SET
(
PAHO_ENABLE_TESTING TRUE CACHE BOOL
"Build tests and run"
)
ADD_SUBDIRECTORY
(
src
)
IF
(
PAHO_BUILD_SAMPLES
)
...
...
@@ -76,7 +77,10 @@ SET(CPACK_PACKAGE_VERSION_MINOR ${PAHO_VERSION_MINOR})
SET
(
CPACK_PACKAGE_VERSION_PATCH
${
PAHO_VERSION_PATCH
}
)
INCLUDE
(
CPack
)
ENABLE_TESTING
()
INCLUDE_DIRECTORIES
(
test src
)
ADD_SUBDIRECTORY
(
test
)
IF
(
PAHO_ENABLE_TESTING
)
ENABLE_TESTING
()
INCLUDE_DIRECTORIES
(
test src
)
ADD_SUBDIRECTORY
(
test
)
ELSE
()
INCLUDE_DIRECTORIES
(
src
)
ENDIF
()
test/CMakeLists.txt
View file @
a87450eb
PROJECT
(
mqtt-tests
)
PROJECT
(
mqtt-tests
C
)
IF
(
WIN32
)
SET
(
MQTT_TEST_BROKER
"tcp://mqtt.iotree.co.uk:1883"
CACHE STRING
"Hostname of a test MQTT broker to use"
)
...
...
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