project(gp_client) cmake_minimum_required(VERSION 2.8) find_package(PkgConfig) pkg_check_modules(Dlog dlog REQUIRED) if(NOT CMAKE_CROSSCOMPILING) pkg_check_modules(Mobicore tee-mobicore) pkg_check_modules(Qsee tee-qsee) endif() if(Mobicore_FOUND) set(project_sources source/gp-api/client/teec_common_tbase.c source/gp-api/client/tees_client_log_android.c source/gp-api/client/tee_client_api.c source/gp-api/protocol/teec_param_utils.c source/gp-api/filesystem/fs_po.c source/gp-api/filesystem/fs_handler.c source/gp-api/filesystem/fs_utils.c ) endif() if(Qsee_FOUND) set(project_sources source/gp-api/client/teec_common_qsee.c source/gp-api/custom_alloc/custom_alloc.c source/gp-api/client/tees_client_log_android.c source/gp-api/client/tee_client_api.c source/gp-api/protocol/teec_param_utils.c source/gp-api/filesystem/fs_po.c source/gp-api/filesystem/fs_handler.c source/gp-api/filesystem/fs_utils.c ) endif() add_definitions(-D__TIZEN__ -DUSE_TIZEN) include_directories( ${Dlog_INCLUDE_DIRS} ${Mobicore_INCLUDE_DIRS} ${Qsee_INCLUDE_DIRS} include/gp-api include/gp-mb source/gp-api/client source/gp-api/protocol source/gp-api/filesystem source/gp-api/custom_alloc ) add_library(${PROJECT_NAME} STATIC ${project_sources}) target_link_libraries(${PROJECT_NAME} ${Dlog_LIBRARIES} ${Mobicore_LIBRARIES} ${Qsee_LIBRARIES} )