# # Copyright (c) 2015 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. # PROJECT(${PROJECT_NAME}-engine-unit-tests) SET(TEST_SRC main.cpp ext4-engine.cpp dmcrypt-engine.cpp ecryptfs-engine.cpp af.cpp ../server/file-footer.cpp ../server/kernel-keyring.cpp ../server/engine/encryption/ext4-engine.cpp ../server/engine/encryption/ecryptfs-engine.cpp ../server/key-manager/key-generator.cpp ../server/key-manager/anti-forensics.cpp ../server/ext4-tool.cpp ../server/progress-bar.cpp ) ADD_EXECUTABLE(${PROJECT_NAME} ${TEST_SRC}) PKG_CHECK_MODULES(TEST_DEPS REQUIRED klay glib-2.0 gio-2.0 openssl vconf ) INCLUDE_DIRECTORIES(SYSTEM ${TEST_DEPS_INCLUDE_DIRS} ../server) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${TEST_DEPS_LIBRARIES}) INSTALL(TARGETS ${PROJECT_NAME} DESTINATION bin)