Skip to content

Commit ee99616

Browse files
authored
Merge branch 'master' into feature-MSVC-Clang
2 parents 0b15459 + af28992 commit ee99616

File tree

6 files changed

+34
-7
lines changed

6 files changed

+34
-7
lines changed

CMakeLists.txt

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ option(UTPP_AMPLIFY_WARNINGS
1111
"Set this to OFF if you wish to use CMake default warning levels; should generally only use to work around support issues for your specific compiler"
1212
ON)
1313

14+
set(LIB_SUFFIX "" CACHE STRING "Identifier to add to end of lib directory name e.g. 64 for lib64")
15+
1416
if(${CMAKE_CXX_COMPILER_ID} MATCHES "MSVC")
1517
# CHECK_CXX_COMPILER_FLAG could be used
1618
# but MSVC version is preferred for feature requirements
@@ -98,11 +100,24 @@ else()
98100
set (UTPP_INSTALL_DESTINATION "include/UnitTestPP")
99101
endif()
100102

101-
set(config_install_dir_ lib/cmake/${PROJECT_NAME})
103+
set(config_install_dir_ lib${LIB_SUFFIX}/cmake/${PROJECT_NAME})
102104
set(targets_export_name_ "${PROJECT_NAME}Targets")
103105

104-
install(TARGETS UnitTest++ EXPORT "${targets_export_name_}" DESTINATION lib)
106+
install(TARGETS UnitTest++ EXPORT "${targets_export_name_}" DESTINATION lib${LIB_SUFFIX})
105107
install(FILES ${headers_} DESTINATION ${UTPP_INSTALL_DESTINATION})
106108
install(FILES ${platformHeaders_} DESTINATION ${UTPP_INSTALL_DESTINATION}/${platformDir_})
107109
install(FILES cmake/UnitTest++Config.cmake DESTINATION "${config_install_dir_}")
108110
install(EXPORT "${targets_export_name_}" DESTINATION "${config_install_dir_}")
111+
112+
set(prefix ${CMAKE_INSTALL_PREFIX})
113+
set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
114+
set(libdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX})
115+
set(includedir ${CMAKE_INSTALL_PREFIX}/include/UnitTest++)
116+
configure_file("UnitTest++.pc.in" "UnitTest++.pc" @ONLY)
117+
if(${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
118+
set(pkgconfdir ${CMAKE_INSTALL_PREFIX}/libdata/pkgconfig)
119+
else()
120+
set(pkgconfdir ${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig)
121+
endif()
122+
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/UnitTest++.pc"
123+
DESTINATION "${pkgconfdir}")

ChangeLog

Whitespace-only changes.

INSTALL

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2+
Preamble: If you are installing UnitTest++ from source, or from a
3+
release prior to 1.6.1, you will need to have autotools installed and
4+
run `autoreconf -i; autoconf` prior to following the standard
5+
instructions below.
6+
17
Installation Instructions
28
*************************
39

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,17 @@ Via svn:
3030

3131
svn checkout https://github.com/unittest-cpp/unittest-cpp/trunk unittest-cpp
3232

33-
### Latest release (v1.6.1) ###
33+
### Latest release (v2.0.0) ###
3434

3535
Via git:
3636

3737
git clone https://github.com/unittest-cpp/unittest-cpp
3838
cd unittest-cpp
39-
git checkout v1.6.1
39+
git checkout v2.0.0
4040

4141
Via svn:
4242

43-
svn checkout https://github.com/unittest-cpp/unittest-cpp/tags/v1.6.1 unittest-cpp
43+
svn checkout https://github.com/unittest-cpp/unittest-cpp/tags/v2.0.0 unittest-cpp
4444

4545
License
4646
---------
@@ -77,6 +77,12 @@ Contributors
7777
Historic release notes
7878
----------------------
7979

80+
### Version 2.0.0 (2017-01-13) ###
81+
- Change Check method supporting CHECK macro to accept argument by reference
82+
- Introduce long macro forms (e.g. UNITTEST_CHECK); make short forms optional
83+
- Improved Visual Studio 2015 support
84+
- [Full List](https://github.com/unittest-cpp/unittest-cpp/issues?q=milestone%3A2.0.0+)
85+
8086
### Version 1.6.0 (2016-02-29) ###
8187
- Add REQUIRE macro to end tests early when selected checks fail
8288
- [Full List](https://github.com/unittest-cpp/unittest-cpp/issues?q=milestone%3A1.6.0+)

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 1.6.1.{build}
1+
version: 2.0.0.{build}
22

33
os:
44
- Windows Server 2012 R2

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ AM_CONDITIONAL([WINDOWS],
2323

2424
LT_INIT()
2525

26-
AC_SUBST([LIBUNITTEST_SO_VERSION], [1:6:0])
26+
AC_SUBST([LIBUNITTEST_SO_VERSION], [2:0:0])
2727

2828
# Checks for programs.
2929
AC_PROG_CXX

0 commit comments

Comments
 (0)