mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 17:56:13 -04:00
commit
15180a9919
@ -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)
|
# Copyright (c) 2012-2014 Sebastien Rombauts (sebastien.rombauts@gmail.com)
|
||||||
#
|
#
|
||||||
# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
|
# Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
|
||||||
# or copy at http://opensource.org/licenses/MIT)
|
# or copy at http://opensource.org/licenses/MIT)
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 2.6)
|
cmake_minimum_required(VERSION 2.6)
|
||||||
project(SQLiteCpp)
|
project(SQLiteCpp)
|
||||||
|
|
||||||
@ -207,3 +222,4 @@ if (SQLITECPP_BUILD_TESTS)
|
|||||||
else (SQLITECPP_BUILD_TESTS)
|
else (SQLITECPP_BUILD_TESTS)
|
||||||
message(STATUS "SQLITECPP_BUILD_TESTS OFF")
|
message(STATUS "SQLITECPP_BUILD_TESTS OFF")
|
||||||
endif (SQLITECPP_BUILD_TESTS)
|
endif (SQLITECPP_BUILD_TESTS)
|
||||||
|
ENDIF()
|
||||||
|
45
biicode.conf
Normal file
45
biicode.conf
Normal file
@ -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
|
Loading…
x
Reference in New Issue
Block a user