aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* tests: Fix building against modern GTestJami Kettunen2023-02-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes being unable to locate GMock (GTest) with gtest v1.12.1 as tested on Void Linux: CMake Warning at tests/CMakeLists.txt:1 (find_package): By not providing "FindGMock.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "GMock", but CMake did not find one. Could not find a package configuration file provided by "GMock" with any of the following names: GMockConfig.cmake gmock-config.cmake Add the installation prefix of "GMock" to CMAKE_PREFIX_PATH or set "GMock_DIR" to a directory containing one of the above files. If "GMock" provides a separate development package or SDK, be sure it has been installed. Also mark the library as REQUIRED since without it found attempting to build tests just fails at link-time with various errors such as: /usr/bin/ld: gtest-menuitems.cpp:(.text+0x14d): undefined reference to `testing::internal::GetBoolAssertionFailureMessage[abi:cxx11](testing::AssertionResult const&, char const*, char const*, char const*)'
* Clean up compilation flagsRobert Tari2022-01-141-2/+0
|
* Use -no-pie build flags for test onlyRobert Tari2021-08-101-2/+1
|
* CMakeLists.txt: Move coverage report generation macro into basefolder's ↵Mike Gabriel2021-05-041-7/+0
| | | | | | | | CMakeLists.txt file. With the previous approach, only coverage of the tests/ subfolder was reported (which always should be 100%). With this change, also coverage of the files in src/ is reported.
* tests/CMakeLists.txt: Unit tests may only run and build if shared library ↵Mike Gabriel2021-04-211-0/+1
| | | | target has been built.
* tests/CMakeLists.txt: Build unit tests with --no-pie CXXFLAG.Mike Gabriel2021-04-211-0/+2
|
* tests/: Port to using GMock cmake package from cmake-extras.Mike Gabriel2021-04-211-3/+17
|
* {tests/,}CMakeLists.txt: Add ENABLE_COVERAGE build option.Mike Gabriel2021-04-211-3/+5
|
* Add CMakeLists.txt files.Robert Tari2021-04-211-0/+13