Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
centreon
centreon-connectors
Commits
e95cc575
Commit
e95cc575
authored
May 19, 2021
by
David Boucher
Browse files
fix(cmake): unit tests did not compile
parent
1df68b36
Changes
2
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
e95cc575
...
...
@@ -46,12 +46,12 @@ add_subdirectory(ssh)
# Testing.
option
(
WITH_TESTING
"Build unit tests."
OFF
)
if
(
WITH_TESTING
)
find_package
(
gt
est REQUIRED
)
find_package
(
GT
est REQUIRED
)
include_directories
(
${
gt
est_INCLUDE_DIRS
}
)
include_directories
(
${
GT
est_INCLUDE_DIRS
}
)
include_directories
(
/usr/lib64/perl5/CORE
)
link_directories
(
${
gt
est_LIB_DIRS
}
)
link_directories
(
${
GT
est_LIB_DIRS
}
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/perl/inc
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/ssh/inc
)
...
...
@@ -87,5 +87,5 @@ if (WITH_TESTING)
${
CMAKE_SOURCE_DIR
}
/ssh/test/sessions.cc
)
target_link_libraries
(
ut
${
gt
est_LIBS
}
${
CLIB_LIBRARIES
}
${
PERL_LIBRARIES
}
${
fmt_LIBS
}
${
spdlog_LIBS
}
${
LIBSSH2_LIBRARIES
}
)
target_link_libraries
(
ut
${
GT
est_LIBS
}
${
CLIB_LIBRARIES
}
${
PERL_LIBRARIES
}
${
fmt_LIBS
}
${
spdlog_LIBS
}
${
LIBSSH2_LIBRARIES
}
)
endif
(
WITH_TESTING
)
cmake.sh
View file @
e95cc575
...
...
@@ -19,8 +19,7 @@ else
fi
cd
build
conan remote add centreon https://api.bintray.com/conan/centreon/centreon
conan
install
--remote
centreon ..
conan
install
..
CXXFLAGS
=
"-Wall -Wextra"
"
$cmake
"
-DCMAKE_BUILD_TYPE
=
Debug
-DWITH_TESTING
=
On
-DWITH_PREFIX_BINARY
=
/usr/lib64/centreon-connector/
$*
..
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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