diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-10 22:51:01 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-05-22 13:28:42 +0900 |
| commit | 7a5739d94f1b459c01c7f6acf5f3b1d99829d352 (patch) | |
| tree | 92ebd768f13cf56c09ff97a23e662a941397de13 /src/backends/CMakeLists.txt | |
| parent | e3823d26a868a9ebb395f4b6e6ff874acae4b595 (diff) | |
| download | krecipes-7a5739d9.tar.gz krecipes-7a5739d9.zip | |
Add cmake rules for tests files and make tests runnable.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 99e16012c2ddbfa877a77c2176e15c3fea5643e6)
Diffstat (limited to 'src/backends/CMakeLists.txt')
| -rw-r--r-- | src/backends/CMakeLists.txt | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/src/backends/CMakeLists.txt b/src/backends/CMakeLists.txt index 42ba0e8..2601e9d 100644 --- a/src/backends/CMakeLists.txt +++ b/src/backends/CMakeLists.txt @@ -1,6 +1,7 @@ include_directories( ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_SOURCE_DIR}/src ) @@ -16,16 +17,24 @@ tde_conditional_add_subdirectory( WITH_SQLITE3 SQLite ) # backend libraries list set( BACKEND_LIBRARIES "" ) if( WITH_MYSQL ) - list( APPEND BACKEND_LIBRARIES "krecmysql-static" ) + list( APPEND BACKEND_LIBRARIES krecmysql-static ) endif( ) if( WITH_POSTGRESQL ) - list( APPEND BACKEND_LIBRARIES "krecpsql-static" ) + list( APPEND BACKEND_LIBRARIES krecpsql-static ) endif( ) if( WITH_SQLITE3 ) - list( APPEND BACKEND_LIBRARIES "krecsqlite-static" ) + list( APPEND BACKEND_LIBRARIES krecsqlite-static ) endif( ) tde_add_library( krecipesdbs STATIC_PIC AUTOMOC - SOURCES recipedb.cpp qsqlrecipedb.cpp progressinterface.cpp - LINK ${BACKEND_LIBRARIES} + SOURCES + recipedb.cpp qsqlrecipedb.cpp progressinterface.cpp propertycalculator.cpp + krecipesdbiface.skel + LINK + datablocks-static krecipesimporters-static ${BACKEND_LIBRARIES} + tdeio-shared ) + +# Increase the number of times the linker scan for circular dependencies +# in static libraries (required for building tests) +set_target_properties( krecipesdbs-static PROPERTIES LINK_INTERFACE_MULTIPLICITY 3 ) |
