diff --git a/CMakeLists.txt b/CMakeLists.txt
index f8cb8a4e39..99e694a473 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -9,7 +9,6 @@ project(exiv2 # use TWEAK to categorize the build
# 0.27.3.19 = RC1 Not for release
LANGUAGES CXX C
)
-
include(cmake/mainSetup.cmake REQUIRED)
# options and their default values
@@ -29,8 +28,9 @@ option( EXIV2_ENABLE_SSH "USE Libssh for SshIo (WEBREADY)"
option( EXIV2_BUILD_SAMPLES "Build sample applications" ON )
option( EXIV2_BUILD_EXIV2_COMMAND "Build exiv2 command-line executable" ON )
-option( EXIV2_BUILD_UNIT_TESTS "Build unit tests" OFF )
+option( EXIV2_BUILD_UNIT_TESTS "Build unit tests" ON )
option( EXIV2_BUILD_DOC "Add 'doc' target to generate documentation" OFF )
+option( EXIV2_BUILD_USE_C++11 "Use the C++11 compiler" OFF )
# Only intended to be used by Exiv2 developers/contributors
option( EXIV2_TEAM_EXTRA_WARNINGS "Add more sanity checks using compiler flags" OFF )
diff --git a/README-SAMPLES.md b/README-SAMPLES.md
deleted file mode 100644
index 99391f42ae..0000000000
--- a/README-SAMPLES.md
+++ /dev/null
@@ -1,646 +0,0 @@
-![Exiv2](exiv2.png)
-
-# Exiv2 Sample Applications
-
-Exiv2 is a C++ library and a command line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata. Exiv2 also features a collection of sample and test command-line programs. Please be aware that while the program _**exiv2**_ enjoys full support from Team Exiv2, the other programs have been written for test, documentation or development purposes. You are expected to read the code to discover the specification of programs other than _**exiv2**_.
-
-[Sample](#TOC1) Programs [Test](#TOC2) Programs
-
-
-
-### Sample Programs
-
-| Name | Purpose | More information | Code |
-|:--- |:--- |:--- |:-- |
-| _**addmoddel**_ | Demonstrates Exiv2 library APIs to add, modify or delete metadata | [addmoddel](#addmoddel) | [addmoddel.cpp](samples/addmoddel.cpp) |
-| _**exifcomment**_ | Set Exif.Photo.UserComment in an image | [exifcomment](#exifcomment) | [exifcomment.cpp](samples/exifcomment.cpp) |
-| _**exifdata**_ | Prints _**Exif**_ metadata in different formats in an image | [exifdata](#exifdata) | [exifdata.cpp](samples/exifdata.cpp) |
-| _**exifprint**_ | Print _**Exif**_ metadata in images
Miscelleous other features | [exifprint](#exifprint)| [exifprint.cpp](samples/exifprint.cpp) |
-| _**exifvalue**_ | Prints the value of a single _**Exif**_ tag in a file | [exifvalue](#exifvalue) | [exifvalue.cpp](samples/exifvalue.cpp) |
-| _**exiv2**_ | Command line utility to read, write, delete and modify Exif, IPTC, XMP and ICC image metadata.
This is the primary test tool used by Team Exiv2 and can exercise almost all code in the library. Due to the extensive capability of this utility, the APIs used are usually less obvious for casual code inspection. | [https://exiv2.org/manpage.html](https://exiv2.org/manpage.html)
[https://exiv2.org/sample.html](https://exiv2.org/sample.html) | |
-| _**exiv2json**_ | Extracts data from image in JSON format.
This program also contains a parser to recursively parse Xmp metadata into vectors and objects. | [exiv2json](#exiv2json) | [exiv2json.cpp](samples/exiv2json.cpp) |
-| _**geotag**_ | Reads GPX data and updates images with GPS Tags | [geotag](#geotag) | [geotag.cpp](samples/geotag.cpp) |
-| _**iptceasy**_ | Demonstrates read, set or modify IPTC metadata | [iptceasy](#iptceasy) | [iptceasy.cpp](samples/iptceasy.cpp) |
-| _**iptcprint**_ | Demonstrates Exiv2 library APIs to print Iptc data | [iptceasy](#iptceasy) | [iptcprint.cpp](samples/iptcprint.cpp) |
-| _**metacopy**_ | Demonstrates copying metadata from one image to another | [metacopy](#metacopy) | [metacopy.cpp](samples/metacopy.cpp) |
-| _**mrwthumb**_ | Sample program to extract a Minolta thumbnail from the makernote | [mrwthumb](#mrwthumb) | [mrwthumb.cpp](samples/mrwthumb.cpp) |
-| _**xmpparse**_ | Read an XMP packet from a file, parse it and print all (known) properties. | [xmpparse](#xmpparse) | [xmpparse.cpp](samples/xmpparse.cpp) |
-| _**xmpprint**_ | Read an XMP from a file, parse it and print all (known) properties.. | [xmpprint](#xmpprint) | [xmpprint.cpp](samples/xmpprint.cpp) |
-| _**xmpsample**_ | Demonstrates Exiv2 library high level XMP classes | [xmpsample](#xmpsample) | [xmpsample.cpp](samples/exmpsample.cpp) |
-
-[Sample](#TOC1) Programs [Test](#TOC2) Programs
-
-
-
-### Test Programs
-
-As Exiv2 is open source, we publish all our materials. Some of the following programs are actively used in our test harness. Some of the following programs were written during the development of features and their on-going use may be limited, or even obsolete. In general these programs are published as source and Team Exiv2 will not provide support to users.
-
-| Name | Kind | More information |
-|:--- |:--- |:--- |
-| _**conntest**_ | Test http/https/ftp/ssh/sftp connection | [conntest](#conntest) |
-| _**convert-test**_ | Conversion test driver | [convert-test](#convert-test) |
-| _**easyaccess-test**_ | Sample program using high-level metadata access functions | [easyaccess-test](#easyaccess-test) |
-| _**getopt-test**_ | Sample program to test getopt() | [getopt-test](#getopt-test) |
-| _**ini-test**_ | Shows simple usage of the INIReader class | [ini-test](#ini-test) |
-| _**iotest**_ | Test programs for BasicIo functions. | [iotest](#iotest) |
-| _**iptctest**_ | Sample program test Iptc reading and writing. | [iptctest](#iptctest) |
-| _**key-test**_ | Key unit tests | [key-test](#key-test) |
-| _**largeiptc-test**_ | Test for large (>65535 bytes) IPTC buffer | [largeiptc-test](#largeiptc-test) |
-| _**mmap-test**_ | Simple mmap tests | [mmap-test](#mmap-test) |
-| _**path-test**_ | Test path IO | [path-test](#path-test) |
-| _**prevtest**_ | Test access to preview images | [prevtest](#prevtest) |
-| _**remotetest**_ | Tester application for testing remote i/o. | [remotetest](#remotetest) |
-| _**stringto-test**_ | Test conversions from string to long, float and Rational types. | [stringto-test](#stringto-test) |
-| _**taglist**_ | Print a simple comma separated list of tags defined in Exiv2 | [taglist](#taglist) |
-| _**tiff-test**_ | Simple TIFF write test | [tiff-test](#tiff-test) |
-| _**werror-test**_ | Simple tests for the wide-string error class WError | [werror-test](#werror-test) |
-| _**write-test**_ | ExifData write unit tests | [write-test](#write-test) |
-| _**write2-test**_ | ExifData write unit tests for Exif data created from scratch | [write2-test](#write2-test) |
-| _**xmpdump**_ | Sample program to dump the XMP packet of an image | [xmpdump](#xmpdump) |
-| _**xmpparser-test**_ | Read an XMP packet from a file, parse and re-serialize it. | [xmpparser-test](#xmpparser-test) |
-
-[Sample](#TOC1) Programs [Test](#TOC2) Programs
-
-## 2 Sample Program Descriptions
-
-
-
-#### addmoddel
-
-```
-Usage: addmoddel file
-```
-
-Demonstrates Exiv2 library APIs to add, modify or delete metadata. _Code: [addmoddel.cpp](samples/addmoddel.cpp)_
-
-[Sample](#TOC1) Programs [Test](#TOC2) Programs
-
-