Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49792 - in sandbox/SOC/2008/graphs/trunk/libs/graphs: . test
From: asutton_at_[hidden]
Date: 2008-11-16 09:40:07


Author: asutton
Date: 2008-11-16 09:40:07 EST (Sun, 16 Nov 2008)
New Revision: 49792
URL: http://svn.boost.org/trac/boost/changeset/49792

Log:
Adding build files, hello test
Added:
   sandbox/SOC/2008/graphs/trunk/libs/graphs/CMakeLists.txt (contents, props changed)
   sandbox/SOC/2008/graphs/trunk/libs/graphs/test/CMakeLists.txt (contents, props changed)
   sandbox/SOC/2008/graphs/trunk/libs/graphs/test/hello.cpp (contents, props changed)

Added: sandbox/SOC/2008/graphs/trunk/libs/graphs/CMakeLists.txt
==============================================================================
--- (empty file)
+++ sandbox/SOC/2008/graphs/trunk/libs/graphs/CMakeLists.txt 2008-11-16 09:40:07 EST (Sun, 16 Nov 2008)
@@ -0,0 +1,32 @@
+
+cmake_minimum_required(VERSION 2.6)
+
+# Grab BOOST_ROOT from the env and use it to find the Boost CMake stuff.
+set(BOOST_ROOT $ENV{BOOST_ROOT})
+if(NOT BOOST_ROOT)
+ message(FATAL_ERROR "Set $BOOST_ROOT before building")
+endif()
+set(Boost_INCLUDE_DIRS ${BOOST_ROOT})
+
+# Include the Boost CMake core.
+list(APPEND CMAKE_MODULE_PATH ${BOOST_ROOT}/tools/build/CMake)
+include(BoostUtils)
+include(BoostConfig)
+include(BoostCore)
+include(BoostDocs)
+include(BoostTesting)
+
+# Define the library project
+# TODO: This doesn't actually seem to do very much if we're out of the build.
+boost_library_project(
+ Graphs
+ # SRCDIRS test
+ TESTDIRS test
+ DESCRIPTION "Generic graph data structures and algorithms"
+ AUTHORS "Andrew Sutton < asutton -at- cs.kent.edu"
+ MODULAR
+)
+set(Graphs_ROOT ${CMAKE_SOURCE_DIR})
+set(Graphs_INCLUDE_DIRS ${Graphs_ROOT}/include)
+
+add_subdirectory(test)

Added: sandbox/SOC/2008/graphs/trunk/libs/graphs/test/CMakeLists.txt
==============================================================================
--- (empty file)
+++ sandbox/SOC/2008/graphs/trunk/libs/graphs/test/CMakeLists.txt 2008-11-16 09:40:07 EST (Sun, 16 Nov 2008)
@@ -0,0 +1,4 @@
+
+include_directories(${Boost_INCLUDE_DIRS} ${Graphs_INCLUDE_DIRS})
+
+add_executable(hello hello.cpp)

Added: sandbox/SOC/2008/graphs/trunk/libs/graphs/test/hello.cpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2008/graphs/trunk/libs/graphs/test/hello.cpp 2008-11-16 09:40:07 EST (Sun, 16 Nov 2008)
@@ -0,0 +1,5 @@
+
+#include <iostream>
+
+int main()
+{ std::cout << "hello world" << std::endl; }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk