1 SET(DB_TEST_DIR ${UNIT_TESTS_DIR}/db)
3 ADD_DEFINITIONS("-DBOOST_TEST_DYN_LINK")
4 ADD_DEFINITIONS("-DDB_TEST_DIR=\"${DB_TEST_DIR}\"")
6 SET(MANAGER_PATH ${PROJECT_SOURCE_DIR}/src/manager)
8 INCLUDE_DIRECTORIES(SYSTEM ${KEY_MANAGER_DEP_INCLUDE_DIRS})
11 ${MANAGER_PATH}/dpl/db/include
12 ${MANAGER_PATH}/dpl/core/include
13 ${MANAGER_PATH}/dpl/log/include
14 ${MANAGER_PATH}/crypto
16 ${MANAGER_PATH}/service
17 ${MANAGER_PATH}/common
18 ${PROJECT_SOURCE_DIR}/src/include
19 ${PROJECT_SOURCE_DIR}/common
20 ${CMAKE_CURRENT_SOURCE_DIR}
24 ${CMAKE_CURRENT_SOURCE_DIR}/test_db_perf.cpp
26 ${PROJECT_SOURCE_DIR}/common/colour_log_formatter.cpp
27 ${PROJECT_SOURCE_DIR}/common/DBFixture.cpp
28 ${PROJECT_SOURCE_DIR}/common/test_common.cpp
30 ${MANAGER_PATH}/dpl/core/src/colors.cpp
31 ${MANAGER_PATH}/dpl/db/src/naive_synchronization_object.cpp
32 ${MANAGER_PATH}/dpl/db/src/sql_connection.cpp
33 ${MANAGER_PATH}/service/db-crypto.cpp
34 ${MANAGER_PATH}/service/file-lock.cpp
35 ${MANAGER_PATH}/service/file-system.cpp
36 ${MANAGER_PATH}/service/for-each-file.cpp
37 ${MANAGER_PATH}/service/key-provider.cpp
41 SET(TARGET_CKM_DB_PERF "ckm_db_perf")
48 TARGET_LINK_LIBRARIES(
50 ${TARGET_KEY_MANAGER_COMMON}
51 ${KEY_MANAGER_DEP_LIBRARIES}
53 boost_unit_test_framework
57 INSTALL(TARGETS ${TARGET_CKM_DB_PERF} DESTINATION bin)