mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 15:49:07 +08:00
51 lines
4.0 KiB
Diff
51 lines
4.0 KiB
Diff
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||
|
index dd86d2f..6696809 100644
|
||
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -32,15 +32,14 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake")
|
||
|
include(CTest)
|
||
|
|
||
|
### Dependencies
|
||
|
-add_subdirectory(dependencies)
|
||
|
|
||
|
### Main Build Targets
|
||
|
set(SqliteOrm_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||
|
add_library(sqlite_orm INTERFACE)
|
||
|
add_library(sqlite_orm::sqlite_orm ALIAS sqlite_orm)
|
||
|
|
||
|
-find_package(SQLite3 REQUIRED)
|
||
|
-target_link_libraries(sqlite_orm INTERFACE SQLite::SQLite3)
|
||
|
+find_package(unofficial-sqlite3 CONFIG REQUIRED)
|
||
|
+target_link_libraries(sqlite_orm INTERFACE unofficial::sqlite3::sqlite3)
|
||
|
|
||
|
target_sources(sqlite_orm INTERFACE $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/sqlite_orm/sqlite_orm.h>)
|
||
|
|
||
|
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
|
||
|
index 2857b65..3ee46e6 100644
|
||
|
--- a/examples/CMakeLists.txt
|
||
|
+++ b/examples/CMakeLists.txt
|
||
|
@@ -4,5 +4,5 @@ file(GLOB files "*.cpp")
|
||
|
foreach(file ${files})
|
||
|
get_filename_component(file_basename ${file} NAME_WE)
|
||
|
add_executable(${file_basename} ${file})
|
||
|
- target_link_libraries(${file_basename} PRIVATE sqlite_orm sqlite3)
|
||
|
+ target_link_libraries(${file_basename} PRIVATE sqlite_orm)
|
||
|
endforeach()
|
||
|
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
|
||
|
index fd41e70..8087899 100644
|
||
|
--- a/tests/CMakeLists.txt
|
||
|
+++ b/tests/CMakeLists.txt
|
||
|
@@ -7,9 +7,11 @@ option(SqliteOrm_SysSqlite "Use system version of sqlite library" OFF)
|
||
|
if(SqliteOrm_SysSqlite)
|
||
|
message(FATAL_ERROR "WIP: please, disable the SqliteOrm_SysSqlite option.")
|
||
|
else()
|
||
|
- add_subdirectory(third_party/sqlite)
|
||
|
+ find_package(unofficial-sqlite3 CONFIG REQUIRED)
|
||
|
endif()
|
||
|
|
||
|
+find_package(Catch2 CONFIG REQUIRED)
|
||
|
+
|
||
|
add_executable(unit_tests tests.cpp tests2.cpp tests3.cpp tests4.cpp tests5.cpp private_getters_tests.cpp pragma_tests.cpp explicit_columns.cpp core_functions_tests.cpp index_tests.cpp constraints/composite_key.cpp static_tests.cpp operators/arithmetic_operators.cpp operators/like.cpp operators/glob.cpp operators/in.cpp operators/cast.cpp operators/is_null.cpp operators/not_operator.cpp operators/bitwise.cpp dynamic_order_by.cpp prepared_statement_tests/select.cpp prepared_statement_tests/get_all.cpp prepared_statement_tests/get_all_pointer.cpp prepared_statement_tests/get_all_optional.cpp prepared_statement_tests/update_all.cpp prepared_statement_tests/remove_all.cpp prepared_statement_tests/get.cpp prepared_statement_tests/get_pointer.cpp prepared_statement_tests/get_optional.cpp prepared_statement_tests/update.cpp prepared_statement_tests/remove.cpp prepared_statement_tests/insert.cpp prepared_statement_tests/replace.cpp prepared_statement_tests/insert_range.cpp prepared_statement_tests/replace_range.cpp prepared_statement_tests/insert_explicit.cpp pragma_tests.cpp simple_query.cpp static_tests/is_bindable.cpp static_tests/arithmetic_operators_result_type.cpp static_tests/tuple_conc.cpp static_tests/node_tuple.cpp static_tests/bindable_filter.cpp static_tests/count_tuple.cpp static_tests/member_traits_tests.cpp static_tests/select_return_type.cpp constraints/default.cpp constraints/unique.cpp constraints/foreign_key.cpp constraints/check.cpp table_tests.cpp statement_serializator_tests/primary_key.cpp statement_serializator_tests/column_names.cpp statement_serializator_tests/autoincrement.cpp statement_serializator_tests/arithmetic_operators.cpp statement_serializator_tests/core_functions.cpp statement_serializator_tests/comparison_operators.cpp statement_serializator_tests/unique.cpp statement_serializator_tests/foreign_key.cpp statement_serializator_tests/collate.cpp statement_serializator_tests/check.cpp statement_serializator_tests/index.cpp statement_serializator_tests/indexed_column.cpp unique_cases/get_all_with_two_tables.cpp unique_cases/prepare_get_all_with_case.cpp unique_cases/index_named_table_with_fk.cpp unique_cases/issue525.cpp unique_cases/delete_with_two_fields.cpp unique_cases/join_iterator_ctor_compilation_error.cpp get_all_custom_containers.cpp select_asterisk.cpp backup_tests.cpp transaction_tests.cpp)
|
||
|
|
||
|
|