Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/jarro2783/cxxopts.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brightwell <kevin.brightwell2@gmail.com>2016-02-05 23:23:17 +0300
committerKevin Brightwell <kevin.brightwell2@gmail.com>2016-06-16 03:32:32 +0300
commit774d455dc720dc0d90d4d0bbdc57bde0ccb9f51d (patch)
tree09497bb1964e8f9ee8dd11aae4286006cd026ff5 /CMakeLists.txt
parent7081d81890dbd9e348bfa5ae640b5a307241d7e0 (diff)
Update CMakeLists to be more configurable
* Add cxxopts.hpp as a source file to executable * Add msvc options for compiling * Add CXXOPTS_BUILD_EXAMPLES option to CMake build * This is helpful when using CMake's ExternalProject_add() * It is ON by default, but configurable from the command-line.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 219a714..82dcc2c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,6 +31,8 @@ project(cxxopts)
set(VERSION "0.0.1")
+option(CXXOPTS_BUILD_EXAMPLES "Set to ON to build examples" ON)
+
set(CXXOPTS_LINKER_LIBRARIES "")
set(CXXOPTS_USE_UNICODE_HELP FALSE CACHE BOOL "Use ICU Unicode library")