diff options
author | Ziyang LI <ziyangli@users.noreply.github.com> | 2015-08-10 13:11:25 +0300 |
---|---|---|
committer | Ziyang LI <ziyangli@users.noreply.github.com> | 2015-08-10 13:11:25 +0300 |
commit | 456975290375ef039cc18d15323f79dbe348db4c (patch) | |
tree | 79f7be18744d9711c23fdbfa1b41150b156c9cc8 /example/CMakeLists.txt | |
parent | 8498c785a676c1f556b4e3acdbf493c42c39e272 (diff) |
added missing fields of CMakeList.txt
this fixed cmake error for me
Diffstat (limited to 'example/CMakeLists.txt')
-rw-r--r-- | example/CMakeLists.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt index 64632127..8063d892 100644 --- a/example/CMakeLists.txt +++ b/example/CMakeLists.txt @@ -1,6 +1,7 @@ # Copyright (c) 2011 Milo Yip (miloyip@gmail.com) # Copyright (c) 2013 Rafal Jeczalik (rjeczalik@gmail.com) # Distributed under the MIT License (see license.txt file) +cmake_minimum_required(VERSION 2.8) set(EXAMPLES capitalize @@ -13,6 +14,8 @@ set(EXAMPLES simplereader simplewriter tutorial) + +include_directories("../include/") if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -Wextra -Weffc++ -Wswitch-default") |