diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-11-25 12:48:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-25 12:48:07 -0800 |
| commit | a3ea74b9ed174c4682243114e98b4e4d460e1383 (patch) | |
| tree | 863135ca41bdb1cfb29949a895ff525aec1ca103 /ports | |
| parent | fec269d594723bf605a1d65b0fb05f869d954906 (diff) | |
| parent | 89983fe102520c7a063ff349ac824995b1832a97 (diff) | |
| download | vcpkg-a3ea74b9ed174c4682243114e98b4e4d460e1383.tar.gz vcpkg-a3ea74b9ed174c4682243114e98b4e4d460e1383.zip | |
Merge pull request #2250 from AndyM84/master
Adding UnitTest++ Port
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/unittest-cpp/CONTROL | 3 | ||||
| -rw-r--r-- | ports/unittest-cpp/portfile.cmake | 29 |
2 files changed, 32 insertions, 0 deletions
diff --git a/ports/unittest-cpp/CONTROL b/ports/unittest-cpp/CONTROL new file mode 100644 index 000000000..e24b8b774 --- /dev/null +++ b/ports/unittest-cpp/CONTROL @@ -0,0 +1,3 @@ +Source: unittest-cpp
+Version: 2.0.0
+Description: A lightweight unit testing framework for C++
diff --git a/ports/unittest-cpp/portfile.cmake b/ports/unittest-cpp/portfile.cmake new file mode 100644 index 000000000..2a31852a9 --- /dev/null +++ b/ports/unittest-cpp/portfile.cmake @@ -0,0 +1,29 @@ +if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
+ message(STATUS "Warning: Dynamic building not supported by unittest-cpp yet. Building static.")
+ set(VCPKG_LIBRARY_LINKAGE static)
+endif()
+
+include(vcpkg_common_functions)
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO unittest-cpp/unittest-cpp
+ REF v2.0.0
+ SHA512 39318f4ed31534c116679a3257bf1438a6c4b3bef1894dfd40aea934950c6c8197af6a7f61539b8e9ddc67327c9388d7e8a6f8a3e0e966ad26c07554e2429cab
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/UnitTest++)
+file(RENAME ${CURRENT_PACKAGES_DIR}/share/unittest-cpp ${CURRENT_PACKAGES_DIR}/share/unittest++)
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/unittest-cpp RENAME copyright)
+
+# Remove duplicate includes
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
