blob: 42ba0e8f18053609cf3d791070fb7d18931f7987 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
)
##### subfolders
tde_conditional_add_subdirectory( WITH_MYSQL MySQL )
tde_conditional_add_subdirectory( WITH_POSTGRESQL PostgreSQL )
tde_conditional_add_subdirectory( WITH_SQLITE3 SQLite )
##### krecipesdbs (static)
# backend libraries list
set( BACKEND_LIBRARIES "" )
if( WITH_MYSQL )
list( APPEND BACKEND_LIBRARIES "krecmysql-static" )
endif( )
if( WITH_POSTGRESQL )
list( APPEND BACKEND_LIBRARIES "krecpsql-static" )
endif( )
if( WITH_SQLITE3 )
list( APPEND BACKEND_LIBRARIES "krecsqlite-static" )
endif( )
tde_add_library( krecipesdbs STATIC_PIC AUTOMOC
SOURCES recipedb.cpp qsqlrecipedb.cpp progressinterface.cpp
LINK ${BACKEND_LIBRARIES}
)
|