# HG changeset patch # User Alpar Juttner # Date 1291379198 -3600 # Node ID 06491fd08efd52a93af304987d9f661eb251f1f4 # Parent a80381c4376051c34cf6404bc7137313263c0c40 Add contrib dir (#401) diff -r a80381c43760 -r 06491fd08efd CMakeLists.txt --- a/CMakeLists.txt Mon Feb 28 10:19:34 2011 +0100 +++ b/CMakeLists.txt Fri Dec 03 13:26:38 2010 +0100 @@ -124,6 +124,7 @@ ADD_SUBDIRECTORY(lemon) IF(${CMAKE_SOURCE_DIR} STREQUAL ${PROJECT_SOURCE_DIR}) + ADD_SUBDIRECTORY(contrib) ADD_SUBDIRECTORY(demo) ADD_SUBDIRECTORY(tools) ADD_SUBDIRECTORY(doc) diff -r a80381c43760 -r 06491fd08efd contrib/CMakeLists.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/contrib/CMakeLists.txt Fri Dec 03 13:26:38 2010 +0100 @@ -0,0 +1,19 @@ +INCLUDE_DIRECTORIES( + ${PROJECT_SOURCE_DIR} + ${PROJECT_BINARY_DIR} +) + +LINK_DIRECTORIES( + ${PROJECT_BINARY_DIR}/lemon +) + +# Uncomment (and adjust) the following two lines. 'myprog' is the name +# of the final executable ('.exe' will automatically be added to the +# name on Windows) and 'myprog-main.cc' is the source code it is +# compiled from. You can add more source files separated by +# whitespaces. Moreover, you can add multiple similar blocks if you +# want to build more than one executables. + +# ADD_EXECUTABLE(myprog myprog-main.cc) +# TARGET_LINK_LIBRARIES(myprog lemon) + diff -r a80381c43760 -r 06491fd08efd doc/Doxyfile.in --- a/doc/Doxyfile.in Mon Feb 28 10:19:34 2011 +0100 +++ b/doc/Doxyfile.in Fri Dec 03 13:26:38 2010 +0100 @@ -89,6 +89,7 @@ "@abs_top_srcdir@/lemon/bits" \ "@abs_top_srcdir@/lemon/concepts" \ "@abs_top_srcdir@/demo" \ + "@abs_top_srcdir@/contrib" \ "@abs_top_srcdir@/tools" \ "@abs_top_srcdir@/test/test_tools.h" \ "@abs_top_builddir@/doc/references.dox" diff -r a80381c43760 -r 06491fd08efd doc/dirs.dox --- a/doc/dirs.dox Mon Feb 28 10:19:34 2011 +0100 +++ b/doc/dirs.dox Fri Dec 03 13:26:38 2010 +0100 @@ -33,6 +33,19 @@ */ /** +\dir contrib +\brief Directory for user contributed source codes. + +You can place your own C++ code using LEMON into this directory, which +will compile to an executable along with LEMON when you build the +library. This is probably the easiest way of compiling short to medium +codes, for this does require neither a LEMON installed system-wide nor +adding several paths to the compiler. + +Please have a look at contrib/CMakeLists.txt for +instruction on how to add your own files into the build process. */ + +/** \dir test \brief Test programs.