Dan Huantes
bdef2bdd62
UnitTest++ now correctly supports CMake's find_package config mode
...
[CMakeLists.txt]
- Bumped cmake minimum requirement to go to 3.0 as this
appears to be earliest version that transitive usage
requirements are supported.
- Added version to project so that is evident
when looking at CMakeLists.txt
- Removed include_directories as that command
affects more than just UnitTest++ in favor
of target_include_directories.
- The target_include_directories uses the
generator expressions to do the same thing
for the BUILD_INTERFACE condition but only
affects UnitTest++. The INSTALL_INTERFACE
ensures that when UnitTest++ is installed
client applications calling find_package
for UnitTest++ only have to add the
UnitTest++ target to the target_link_libraries
and will get the correct include path
for UnitTest++ added to their include paths.
- Added DEBUG_POSTFIX to both library and
unit test to distinguish them from each other
as they are installed into the same directory
and would otherwise overwrite one another.
- Added Versioning using write_basic_package_version_file
to the install so that a client can call
find_package(UnitTest++ 2.1 REQUIRED) and it will be
able to confirm the version. If the version is updated
you could theoretically ahve a version 2.2, 2.3 ,etc...
and the find_package mechanism will find the correct one.
the SameMajorVersion option in that call indicates
that 2.3 is compatible with 2.1 or in other words if
find_package(UnitTest++ 2.1 REQUIRED) is called and
2.3 is installed that satisfies the condition but
if only 3.0 was installed it will fail because of
'SameMajorVersion'.
- Also added installation for the Version file.
2019-08-15 07:26:45 -05:00
Patrick Johnmeyer
bc5d87f484
Merge pull request #161 from martinmoene/cmake
...
Use if (MSVC) as per issue #160
2017-07-08 10:06:47 -05:00
Martin Moene
a6fdaeef12
Use if (MSVC) as per issue #160
2017-07-08 11:09:38 +02:00
Patrick Johnmeyer
85b3666173
Merge pull request #149 from timdave13/patch-1
...
fix clang warnings
2017-07-07 23:16:00 -05:00
Patrick Johnmeyer
8c460c48e6
Merge pull request #141 from Reification/feature-MSVC-Clang
...
Feature msvc clang
2017-06-30 23:46:28 -05:00
Patrick Johnmeyer
65af507437
Merge pull request #155 from vicentebolea/adding-autogen-script
...
Added autogen.sh file to ease autotools installation
2017-06-30 23:35:29 -05:00
Patrick Johnmeyer
ee996164f2
Merge branch 'master' into feature-MSVC-Clang
2017-06-30 23:31:18 -05:00
Patrick Johnmeyer
af28992c5d
Merge pull request #148 from cwilling/add-lib_dir
...
Add support for LIB_SUFFIX
2017-06-30 23:13:06 -05:00
Vicente Adolfo Bolea Sanchez
33e6314753
Added autogen.sh file to ease autotools installation
2017-05-22 00:22:38 +09:00
Tim Bochenek
07d4872076
fix clang warnings
...
fix clang warning warning: no previous extern declaration for non-static variable 'X' [-Wmissing-variable-declarations]
2017-02-03 08:19:17 -05:00
Gabriel Hare
0b15459ee4
Downgrade message to STATUS and do not declare C++11 as a requirement.
2017-02-02 21:56:48 -08:00
Tim Bochenek
0a6857e388
fix clang warning
...
fix clang warning 'extra ';' outside function is c++11 extension
2017-02-02 18:03:59 -05:00
timdave13
d7bd757862
fix clang warning
...
fix clang warning: 'X' has no out-of-line virtual method definitions; its vtable will be emitted in every translation unit [-Wweak-vtables]
2017-02-02 17:14:27 -05:00
Christoph Willing
0757ba8f90
Add support for LIB_SUFFIX
...
Signed-off-by: Christoph Willing <chris.willing@iinet.net.au>
2017-01-23 17:49:12 +10:00
Patrick Johnmeyer
c331bb0dea
Merge pull request #146 from iblis17/fbsd-cmake
...
cmake: fix pkgconfig dir path on FreeBSD
2017-01-19 19:00:12 -06:00
Iblis Lin
85bade33f5
cmake: fix pkgconfig dir path on FreeBSD
2017-01-14 23:00:24 +08:00
Patrick Johnmeyer
d0980fe7e2
Merge pull request #143 from unittest-cpp/v2-prep
...
v2.0.0 prep
Closes #96
2017-01-13 15:55:01 -06:00
Patrick Johnmeyer
615b6cdd0f
Add note re: autotools to INSTALL file
2017-01-13 14:51:19 -06:00
Patrick Johnmeyer
8e5968bb05
Roll version number to 2.0.0
2017-01-13 14:38:23 -06:00
Patrick Johnmeyer
8d70dff05b
Delete unused ChangeLog file
...
Closes #138
2017-01-13 14:38:07 -06:00
Patrick Johnmeyer
5e3b37825c
Merge pull request #139 from edanaher/pkgconfig-with-cmake
...
Build pkgconfig file with CMake, not just with autoconf.
Fixes #89
2017-01-13 13:28:25 -06:00
Gabriel Hare
a2fe23887a
Use “MATCHES” instead of “STREQUAL” to avoid ambiguous comparison.
...
NOTE: Unlike STREQUAL this comparison is supported pre and post CMake v3.1.0
2016-12-15 02:50:09 -08:00
Gabriel Hare
bb49539107
Revert "Increase CMake version to resolve developer warnings regarding implicit quoted dereference in STREQUAL comparison"
...
This reverts commit 8f7a263446 .
2016-12-15 02:46:13 -08:00
Gabriel Hare
c4ab9d31ed
Identify Clang compiler when used as an MSVC extension
2016-12-15 00:40:03 -08:00
Gabriel Hare
8f7a263446
Increase CMake version to resolve developer warnings regarding implicit quoted dereference in STREQUAL comparison
2016-12-15 00:31:56 -08:00
Gabriel Hare
9eba823269
Demonstrate that compiler is identified as MSVC when VS2014 Clang extension is used
2016-12-14 23:11:20 -08:00
Patrick Johnmeyer
478b6545b2
Merge pull request #135 from jumonatr/master
...
Update Docs Hash
2016-12-03 22:57:09 -06:00
Evan Danaher
40f90dc601
Build pkgconfig file with CMake, not just with autoconf.
2016-12-01 12:52:48 -05:00
Julien Monat Rodier
0d77b1ae10
Update docs reference to avoid bad path names on windows
2016-10-11 13:00:40 -07:00
Patrick Johnmeyer
d8e27e1825
Merge pull request #127 from pjohnmeyer/up_gcc_clang_warning_levels
...
Up non-MSVC warning levels
2016-08-30 20:45:40 -05:00
Patrick Johnmeyer
1d0e157c5a
Merge pull request #126 from pjohnmeyer/up_msvc_warning_levels
...
Up MSVC warning levels
2016-08-30 20:45:20 -05:00
Patrick Johnmeyer
c431be9f94
Merge pull request #128 from killoctal/useSize_t
...
Use size_t for array or vector index
2016-08-30 20:44:49 -05:00
Gabriel Schlozer
eca039304b
Used size_t for CHECK macros
2016-08-29 22:36:31 +02:00
Patrick Johnmeyer
7d7ba0aba4
Re-enable ignored-qualifiers warning and fix
2016-08-27 20:41:41 -05:00
Patrick Johnmeyer
e161d44077
Use CMake SET instead of string CONCAT
...
string(CONCAT...) was not available in older versions of CMake
targeted by this project.
2016-08-27 10:04:54 -05:00
Patrick Johnmeyer
2e2475fa54
Fix unused variable warnings
2016-08-27 09:55:37 -05:00
Patrick Johnmeyer
f0044e919d
Up warning level to -Wall/extra/error for non-MSVC
...
UTPP_AMPLIFY_WARNINGS can be turned OFF to disable the new behavior.
2016-08-27 09:54:32 -05:00
Patrick Johnmeyer
7e4fff3bb4
Fix "assignment operator could not be generated" warning
...
This shows up with /W4 on MSVC. Fixes #107 .
2016-08-27 08:27:15 -05:00
Patrick Johnmeyer
7c15942751
Up warning level to /W4 /WX for MSVC-like compilers
...
Also adds a CMake option, UTPP_AMPLIFY_WARNINGS, that can be turned
OFF to disable the new behavior.
2016-08-27 08:26:05 -05:00
Patrick Johnmeyer
83dbcc076d
Merge pull request #115 from unittest-cpp/add_cmake_option_to_disable_running_tests_as_build_step
...
Add UTPP_INCLUDE_TESTS_IN_BUILD CMake option
2016-08-16 22:45:34 -05:00
Patrick Johnmeyer
097c71e6b8
Merge pull request #114 from unittest-cpp/long_and_short_macros
...
Long and short macros
2016-08-16 22:41:13 -05:00
Patrick Johnmeyer
77ae15ab8a
Merge pull request #120 from pjohnmeyer/check_by_reference
...
Take UnitTest::Check parameter by const reference
2016-08-16 22:22:58 -05:00
Patrick Johnmeyer
6b69ed78ba
Skip test build with same option as run
...
As part of this, changed the option name to
`UTPP_INCLUDE_TESTS_IN_BUILD`. The test target is still added to the
build and can be built/run separately using the CMake --target option.
2016-07-18 21:13:03 -05:00
Patrick Johnmeyer
14f317c40c
Eliminate double-negative in option name / value
...
UTPP_SKIP_TESTS_AS_BUILD_STEP with a default value of OFF was an
unfortunate choice, so this changes it to UTPP_RUN_TESTS_AS_BUILD_STEP
with a default value of ON.
2016-07-18 20:49:18 -05:00
Patrick Johnmeyer
fa97152619
Add UTPP_SKIP_TESTS_AS_BUILD_STEP CMake option
...
Helps address #104 .
2016-07-18 20:49:18 -05:00
Patrick Johnmeyer
de915185f6
Remove unused variable from test copy constructor
2016-07-15 23:58:48 -05:00
Patrick Johnmeyer
bec6ba56ec
Attempted fix for Travis build.
2016-07-15 23:54:59 -05:00
Patrick Johnmeyer
21589e5612
Take UnitTest::Check parameter by const reference
...
Fixes #119 and #7
2016-07-15 23:23:45 -05:00
Patrick Johnmeyer
510903c880
Merge pull request #117 from korli/master
...
Add support for Haiku.
2016-07-15 22:58:31 -05:00
Patrick Johnmeyer
c7a9e7fd9e
Merge pull request #116 from JonChesterfield/master
...
Prefix local variable message in CHECK macros with UnitTest_
2016-07-15 22:54:17 -05:00