From 2e6482e993eb38dc080ffece149c1048a8f3ebc9 Mon Sep 17 00:00:00 2001 From: mariadeanton Date: Fri, 16 Jan 2015 12:02:48 +0100 Subject: [PATCH] added biicode support --- CMakeLists.txt | 20 ++++++++++++++++++-- biicode.conf | 45 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+), 2 deletions(-) create mode 100644 biicode.conf diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e50c9b..74a42ab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,25 @@ -# Main CMake file for compiling the library itself, examples and tests. +IF(BIICODE) + include(${CMAKE_HOME_DIRECTORY}/biicode.cmake) + # Initializes block variables + INIT_BIICODE_BLOCK() + + # Include base block dir + ADD_BIICODE_TARGETS() + + # Link target with dl for linux + IF (UNIX) + IF(NOT APPLE) + TARGET_LINK_LIBRARIES(${BII_BLOCK_TARGET} INTERFACE dl) + ENDIF() + ENDIF() + +ELSE() + # Main CMake file for compiling the library itself, examples and tests. # # Copyright (c) 2012-2014 Sebastien Rombauts (sebastien.rombauts@gmail.com) # # Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt # or copy at http://opensource.org/licenses/MIT) - cmake_minimum_required(VERSION 2.6) project(SQLiteCpp) @@ -207,3 +222,4 @@ if (SQLITECPP_BUILD_TESTS) else (SQLITECPP_BUILD_TESTS) message(STATUS "SQLITECPP_BUILD_TESTS OFF") endif (SQLITECPP_BUILD_TESTS) +ENDIF() diff --git a/biicode.conf b/biicode.conf new file mode 100644 index 0000000..575d4a2 --- /dev/null +++ b/biicode.conf @@ -0,0 +1,45 @@ +# Biicode configuration file + +[requirements] + # Blocks and versions this block depends on e.g. + google/gtest : 9 + +[parent] + # The parent version of this block. Must match folder name. E.g. + # user/block # No version number means not published yet + # You can change it to publish to a different track, and change version, e.g. + sqlite/sqlite: 7 + +[paths] + # Local directories to look for headers (within block) + include + / + sqlite3 + +[dependencies] + # Manual adjust file implicit dependencies, add (+), remove (-), or overwrite (=) + include/SQLiteCpp/Assertion.h - tests/Database_test.cpp + include/SQLiteCpp/Assertion.h - examples/example1/main.cpp + include/SQLiteCpp/Assertion.h - examples/example1/biimain.cpp + +[mains] + # Manual adjust of files that define an executable + # !main.cpp # Do not build executable from this file + # main2.cpp # Build it (it doesnt have a main() function, but maybe it includes it) + +[hooks] + # These are defined equal to [dependencies],files names matching bii*stage*hook.py + # will be launched as python scripts at stage = {post_process, clean} + # CMakeLists.txt + bii/my_post_process1_hook.py bii_clean_hook.py + +[includes] + # Mapping of include patterns to external blocks + gtest/gtest.h: google/gtest/include + + +[data] + # Manually define data files dependencies, that will be copied to bin for execution + # By default they are copied to bin/user/block/... which should be taken into account + # when loading from disk such data + examples/example1/main.cpp + example.db3 logo.png + examples/example1/biimain.cpp + example.db3 logo.png \ No newline at end of file