Added module for Boost detection and automatic build-up

This commit is contained in:
Radovan Bast
2015-09-07 17:45:31 +02:00
committed by Roberto Di Remigio
parent ea694c0bdd
commit 1780e4a189
44 changed files with 510 additions and 25 deletions

View File

@ -0,0 +1,19 @@
[project]
name: example
min_cmake_version: 2.8
[cxx]
source: ../../../modules/cxx.cmake
[custom]
source: custom/boost_version-components.cmake
[boost]
source: ../../../modules/boost/boost.cmake
fetch: http://sourceforge.net/projects/boost/files/boost/1.48.0/boost_1_48_0.zip
[default_build_paths]
source: ../../../modules/default_build_paths.cmake
[src]
source: ../../../modules/src.cmake

View File

@ -0,0 +1,2 @@
set(BOOST_MINIMUM_REQUIRED 1.48.0)
list(APPEND BOOST_COMPONENTS_REQUIRED)

View File

@ -0,0 +1 @@
add_executable(example example.cpp)

View File

@ -0,0 +1,17 @@
#include <iostream>
#include <boost/version.hpp>
int main()
{
std::cout << "Boost version: "
<< BOOST_VERSION / 100000
<< "."
<< BOOST_VERSION / 100 % 1000
<< "."
<< BOOST_VERSION % 100
<< std::endl;
std::cout << "PASSED" << std::endl;
return 0;
}