Add the version number to vectorwrapper.hpp
This commit is contained in:
parent
a4184811b1
commit
19b12600d8
6 changed files with 46 additions and 17 deletions
21
CMakeLists.txt
Normal file
21
CMakeLists.txt
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)
|
||||||
|
cmake_policy(SET CMP0048 NEW)
|
||||||
|
project(vectorwrapper VERSION 1.1.0)
|
||||||
|
|
||||||
|
if (BUILD_TESTS)
|
||||||
|
add_subdirectory(test)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
configure_file(
|
||||||
|
include/vectorwrapper/vectorwrapper.hpp.in
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/include/vectorwrapper/vectorwrapper.hpp
|
||||||
|
@ONLY
|
||||||
|
)
|
||||||
|
|
||||||
|
install(DIRECTORY include/vectorwrapper
|
||||||
|
DESTINATION include
|
||||||
|
PATTERN vectorwrapper.hpp.in EXCLUDE
|
||||||
|
)
|
||||||
|
install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/vectorwrapper
|
||||||
|
DESTINATION include
|
||||||
|
)
|
|
@ -16,9 +16,9 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "vectorwrapper.hpp"
|
#include "vectorwrapper/vectorwrapper.hpp"
|
||||||
#include "sequence_bt.hpp"
|
#include "vectorwrapper/sequence_bt.hpp"
|
||||||
#include "size_type.hpp"
|
#include "vectorwrapper/size_type.hpp"
|
||||||
#include <iterator>
|
#include <iterator>
|
||||||
#include <ciso646>
|
#include <ciso646>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
|
@ -16,9 +16,9 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "sequence_bt.hpp"
|
#include "vectorwrapper/sequence_bt.hpp"
|
||||||
#include "size_type.hpp"
|
#include "vectorwrapper/size_type.hpp"
|
||||||
#include "vectorwrapper.hpp"
|
#include "vectorwrapper/vectorwrapper.hpp"
|
||||||
|
|
||||||
#if defined VWR_OUTER_NAMESPACE
|
#if defined VWR_OUTER_NAMESPACE
|
||||||
namespace VWR_OUTER_NAMESPACE {
|
namespace VWR_OUTER_NAMESPACE {
|
||||||
|
|
|
@ -16,8 +16,8 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "vectorwrapper.hpp"
|
#include "vectorwrapper/vectorwrapper.hpp"
|
||||||
#include "size_type.hpp"
|
#include "vectorwrapper/size_type.hpp"
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <cstddef>
|
#include <cstddef>
|
||||||
|
|
||||||
|
|
|
@ -16,16 +16,20 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "sequence_bt.hpp"
|
#include "vectorwrapper/sequence_bt.hpp"
|
||||||
#include "size_type.hpp"
|
#include "vectorwrapper/size_type.hpp"
|
||||||
#include "implem_vec_base.hpp"
|
#include "vectorwrapper/implem_vec_base.hpp"
|
||||||
#include "implem_vec_common.hpp"
|
#include "vectorwrapper/implem_vec_common.hpp"
|
||||||
#include <ciso646>
|
#include <ciso646>
|
||||||
#include <type_traits>
|
#include <type_traits>
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
|
#define VWR_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
|
||||||
|
#define VWR_VERSION_MINOR @PROJECT_VERSION_MINOR@
|
||||||
|
#define VWR_VERSION_PATCH @PROJECT_VERSION_PATCH@
|
||||||
|
|
||||||
#if defined VWR_OUTER_NAMESPACE
|
#if defined VWR_OUTER_NAMESPACE
|
||||||
namespace VWR_OUTER_NAMESPACE {
|
namespace VWR_OUTER_NAMESPACE {
|
||||||
#endif
|
#endif
|
||||||
|
@ -398,4 +402,4 @@ namespace vwr {
|
||||||
} //namespace VWR_OUTER_NAMESPACE
|
} //namespace VWR_OUTER_NAMESPACE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "vectorwrapper.inl"
|
#include "vectorwrapper/vectorwrapper.inl"
|
|
@ -1,13 +1,14 @@
|
||||||
cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)
|
cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR)
|
||||||
|
cmake_policy(SET CMP0048 NEW)
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
|
|
||||||
add_subdirectory(gtest-1.7.0)
|
add_subdirectory(gtest-1.7.0)
|
||||||
set(GTEST_MAIN_CPP "${CMAKE_SOURCE_DIR}/gtest-1.7.0/src/gtest_main.cc")
|
set(GTEST_MAIN_CPP "${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.7.0/src/gtest_main.cc")
|
||||||
set(UNITTEST_DATA_DIR "${CMAKE_SOURCE_DIR}/../data")
|
set(UNITTEST_DATA_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../data")
|
||||||
|
|
||||||
include_directories(SYSTEM
|
include_directories(SYSTEM
|
||||||
gtest-1.7.0/include
|
${CMAKE_CURRENT_SOURCE_DIR}/gtest-1.7.0/include
|
||||||
)
|
)
|
||||||
|
|
||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -std=c++11")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -std=c++11")
|
||||||
|
@ -20,6 +21,9 @@ add_definitions(
|
||||||
-Wconversion
|
-Wconversion
|
||||||
)
|
)
|
||||||
|
|
||||||
include_directories(../include)
|
include_directories(
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/../include
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/../include
|
||||||
|
)
|
||||||
add_subdirectory(unit)
|
add_subdirectory(unit)
|
||||||
add_subdirectory(unit_noconv)
|
add_subdirectory(unit_noconv)
|
||||||
|
|
Loading…
Reference in a new issue