-
-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #208 from fnc12/dev
Dev to master for 1.3
- Loading branch information
Showing
71 changed files
with
6,401 additions
and
2,178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright (c) 2012-2019 Sebastien Rombauts ([email protected]) | ||
|
||
# build format | ||
version: "{build}" | ||
|
||
# scripts that run after cloning repository | ||
install: | ||
- git submodule update --init --recursive | ||
|
||
image: | ||
- Visual Studio 2017 | ||
|
||
# configurations to add to build matrix | ||
# TODO: MinGW Makefiles and MSYS Makefiles | ||
configuration: | ||
- Debug | ||
- Release | ||
|
||
environment: | ||
matrix: | ||
- arch: Win32 | ||
- arch: Win64 | ||
|
||
init: | ||
- echo %APPVEYOR_BUILD_WORKER_IMAGE% - %configuration% - %arch% | ||
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (set vs=Visual Studio 15 2017) | ||
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" (set vs=Visual Studio 14 2015) | ||
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" (set vs=Visual Studio 12 2013) | ||
- if "%arch%"=="Win64" (set generator="%vs% Win64") | ||
- if "%arch%"=="Win32" (set generator="%vs%") | ||
- echo %generator% | ||
|
||
# scripts to run before build | ||
before_build: | ||
- mkdir compile | ||
- cd compile | ||
- cmake -DSqliteOrm_BuildTests=ON .. -G %generator% | ||
|
||
# build examples, and run tests (ie make & make test) | ||
build_script: | ||
- cmake --build . --config %configuration% | ||
- ctest --output-on-failure --build-config %configuration% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Define the default install paths | ||
set(BIN_INSTALL_DIR "bin" CACHE PATH "The binary install dir (default: bin)") | ||
set(LIB_INSTALL_DIR "lib${LIB_SUFFIX}" CACHE PATH "The library install dir (default: lib${LIB_SUFFIX})") | ||
set(INCLUDE_INSTALL_DIR "include" CACHE PATH "The library install dir (default: include)") | ||
set(CMAKE_INSTALL_DIR "lib/cmake" CACHE PATH "The subdirectory to install cmake config files (default: cmake)") | ||
set(PKGCONFIG_INSTALL_DIR "lib/pkgconfig" CACHE PATH "The subdirectory to install pkgconfig config files (default: lib/pkgconfig)") | ||
set(DOC_INSTALL_DIR "share/doc" CACHE PATH "The subdirectory to install documentation files (default: share/doc)") | ||
set(prefix "${CMAKE_INSTALL_PREFIX}") | ||
set(exec_prefix "${CMAKE_INSTALL_PREFIX}/bin") | ||
set(libdir "${CMAKE_INSTALL_PREFIX}/lib") | ||
set(includedir "${CMAKE_INSTALL_PREFIX}/include") | ||
set(cmakedir "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DIR}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
include(CMakePackageConfigHelpers) | ||
|
||
set(PACKAGE_INCLUDE_INSTALL_DIR "${includedir}/sqlite_orm") | ||
set(PACKAGE_CMAKE_INSTALL_DIR "${cmakedir}/sqlite_orm") | ||
|
||
# In CYGWIN enviroment below commands does not work properly | ||
if (NOT CYGWIN) | ||
configure_package_config_file("${CMAKE_CURRENT_SOURCE_DIR}/build/cmake/SqliteOrmConfig.cmake.in" | ||
"${CMAKE_CURRENT_BINARY_DIR}/SqliteOrmConfig.cmake" | ||
INSTALL_DESTINATION "${CMAKE_INSTALL_DIR}/sqlite_orm" | ||
PATH_VARS | ||
PACKAGE_INCLUDE_INSTALL_DIR | ||
PACKAGE_CMAKE_INSTALL_DIR | ||
) | ||
|
||
write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/SqliteOrmConfigVersion.cmake" | ||
VERSION ${sqlite_orm_VERSION} | ||
COMPATIBILITY SameMajorVersion | ||
) | ||
|
||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/SqliteOrmConfig.cmake" | ||
"${CMAKE_CURRENT_BINARY_DIR}/SqliteOrmConfigVersion.cmake" | ||
DESTINATION "${CMAKE_INSTALL_DIR}/sqlite_orm") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
set(SQLITE_ORM_VERSION ${sqlite_orm_VERSION}) | ||
|
||
@PACKAGE_INIT@ | ||
|
||
set_and_check(SQLITE_ORM_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@") | ||
set_and_check(SQLITE_ORM_CMAKE_DIR "@PACKAGE_CMAKE_INSTALL_DIR@") | ||
|
||
if (NOT TARGET sqlite_orm::sqlite_orm) | ||
include("${SQLITE_ORM_CMAKE_DIR}/SqliteOrmTargets.cmake") | ||
endif() | ||
|
||
set(SQLITE_ORM_LIBRARIES sqlite_orm::sqlite_orm) | ||
|
||
if ("${SQLITE_ORM_LIBRARIES}" STREQUAL "") | ||
message(FATAL_ERROR "sqlite_orm libraries were not found") | ||
endif() | ||
|
||
if (NOT SqliteOrm_FIND_QUIETLY) | ||
message(STATUS "Found sqlite_orm: ${PACKAGE_PREFIX_DIR}") | ||
endif() | ||
|
||
check_required_components(SqliteOrm) |
Oops, something went wrong.