#include <iostream>
#include <boost/array.hpp>
int main() {
boost::array<int, 2> a;
a[0] = 2;
std::cout << "Hello world!" << std::endl;
}
cmake_minimum_required (VERSION 3.0)
project(hello)
find_package(Boost)
include_directories (${Boost_INCLUDE_DIRS})
add_executable(${PROJECT_NAME} hello.cpp)
On command prompt:
cd c:\code
git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
bootstrap-vcpkg
vcpkg integrate install
On command prompt:
cd c:\code\vcpkg
vcpkg install boost-array
On command prompt:
cd c:\code\hello
mkdir ninja
cd ninja
cmake .. -GNinja -DCMAKE_TOOLCHAIN_FILE="c:\code\vcpkg\scripts\buildsystems\vcpkg.cmake"
On command prompt:
cd c:\code\hello\ninja
ninja
On command prompt:
cd c:\code\hello\ninja
hello