# Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # @file CMakeLists.txt # @author Przemyslaw Dobrowolski (p.dobrowolsk@samsung.com) # @version 1.0 # @brief # # # Test files # # Define all DPL tests sources. # Runner is responsible for runnint it all and # generating proper output files # SET(TARGET_NAME "dpl-tests-core") # Set DPL tests sources SET(DPL_TESTS_SOURCES ${PROJECT_SOURCE_DIR}/tests/core/main.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_address.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_binary_queue.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_foreach.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_fast_delegate.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_log_unhandled_exception.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_once.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_serialization.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_scoped_array.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_scoped_close.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_scoped_fclose.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_scoped_free.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_scoped_ptr.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_semaphore.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_shared_ptr.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_string.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_task.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_thread.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_type_list.cpp ${PROJECT_SOURCE_DIR}/tests/core/test_zip_input.cpp ) INCLUDE_DIRECTORIES( ${SYS_EFL_INCLUDE_DIRS} ${DPL_TEST_INCLUDE_DIR} ) LINK_DIRECTORIES(${SYS_EFL_LIBRARY_DIRS}) ADD_EXECUTABLE(${TARGET_NAME} ${DPL_TESTS_SOURCES}) TARGET_LINK_LIBRARIES( ${TARGET_NAME} ${SYS_EFL_LIBRARIES} ${TARGET_DPL_EFL} ${TARGET_DPL_TEST_ENGINE_EFL} ) SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES BUILD_WITH_INSTALL_RPATH ON INSTALL_RPATH_USE_LINK_PATH ON ) INSTALL(TARGETS ${TARGET_NAME} DESTINATION bin) INSTALL(FILES ${PROJECT_SOURCE_DIR}/tests/core/data/sample.zip DESTINATION /opt/apps/wrt/wrt-commons/tests/core )