36 lines
No EOL
1.2 KiB
CMake
36 lines
No EOL
1.2 KiB
CMake
set(PROJECT_NAME testsUnit)
|
|
|
|
harbour_harvest_files()
|
|
|
|
harbour_create_test_lib(testsUnit)
|
|
|
|
target_include_directories(testsUnit PUBLIC ./..)
|
|
target_include_directories(testsUnit PRIVATE ${PROJECT_SOURCE_DIR}/client-sdk/private)
|
|
|
|
target_include_directories(testsUnit PUBLIC ${PROJECT_SOURCE_DIR}/tests/rapidjson)
|
|
|
|
if (ANDROID_VS)
|
|
target_include_directories(testsUnit PRIVATE ${ANDROID_NDK}/sources/android/native_app_glue)
|
|
endif()
|
|
|
|
if (ANDROID)
|
|
if(ANDROID_VS)
|
|
#set(CMAKE_CXX_FLAGS "-std=c++11 -Wno-deprecated-declarations ${CMAKE_CXX_FLAGS}")
|
|
else()
|
|
set(CMAKE_CXX_FLAGS "-std=c++11 -Wno-deprecated-declarations ${CMAKE_CXX_FLAGS}")
|
|
endif()
|
|
endif()
|
|
|
|
target_link_libraries(testsUnit PUBLIC ubiservices harboureal gmock usCommon $<$<AND:$<BOOL:${US_ENABLE_PROFILE}>,$<CONFIG:Profile>>:faprofiler>)
|
|
|
|
if (WIN OR IOS OR TVOS OR OSX OR LINUX OR GGP OR ANDROID)
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE libcurl)
|
|
endif()
|
|
|
|
if (WIN OR IOS OR TVOS OR OSX OR LINUX OR GGP OR ANDROID OR PS4 OR KILI)
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE openssl)
|
|
endif()
|
|
|
|
if(US_BUILDING_FOR_US)
|
|
target_compile_options(testsUnit PUBLIC -DUS_S2S_TESTS_PRIVATE_KEY)
|
|
endif() |