1 # Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
15 # @file CMakeLists.txt
16 # @author Lukasz Marek (l.marek@samsung.com)
24 # Define all DPL tests sources.
25 # Runner is responsible for runnint it all and
26 # generating proper output files
29 SET(TARGET_NAME "dpl-tests-db")
31 # Set DPL tests sources
33 ${PROJECT_SOURCE_DIR}/tests/db/main.cpp
34 ${PROJECT_SOURCE_DIR}/tests/db/test_orm.cpp
35 ${PROJECT_SOURCE_DIR}/tests/db/test_sql_connection.cpp
41 ${SYS_EFL_INCLUDE_DIRS}
42 ${DPL_TEST_INCLUDE_DIR}
43 ${CMAKE_CURRENT_SOURCE_DIR}/orm
46 LINK_DIRECTORIES(${SYS_EFL_LIBRARY_DIRS})
48 ADD_EXECUTABLE(${TARGET_NAME} ${DPL_TESTS_SOURCES})
50 TARGET_LINK_LIBRARIES(
54 ${TARGET_DPL_TEST_ENGINE_EFL}
57 SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES
58 BUILD_WITH_INSTALL_RPATH ON
59 INSTALL_RPATH_USE_LINK_PATH ON
62 INSTALL(TARGETS ${TARGET_NAME}
64 PERMISSIONS OWNER_READ
74 ${PROJECT_SOURCE_DIR}/tests/db/orm/dpl_orm_test.db
75 DESTINATION /opt/apps/wrt/wrt-commons/tests/db