Родитель
afd6569b40
Коммит
3c52a4e0d9
|
@ -17,8 +17,7 @@ include_directories(${OPENSSL_INCLUDE_DIR})
|
|||
|
||||
add_executable(${MODULE_NAME} ${${MODULE_PREFIX}_SRCS})
|
||||
|
||||
file(TO_NATIVE_PATH ${CMAKE_CURRENT_SOURCE_DIR} TEST_PATH)
|
||||
string(REGEX REPLACE "\\\\" "\\\\\\\\" TEST_PATH ${TEST_PATH})
|
||||
set(TEST_PATH ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
add_definitions(-DTEST_SOURCE_DIR="${TEST_PATH}")
|
||||
target_link_libraries(${MODULE_NAME} freerdp winpr ${OPENSSL_LIBRARIES})
|
||||
|
|
|
@ -27,11 +27,7 @@ static char* certificate_path(void)
|
|||
where the tests are run. (ie. no chdir occurs between compilation and test running, or __FILE__
|
||||
is an absolute path).
|
||||
*/
|
||||
#if defined(_WIN32)
|
||||
static const char dirsep = '\\';
|
||||
#else
|
||||
static const char dirsep = '/';
|
||||
#endif
|
||||
static const char filename[] = "Test_x509_cert_info.pem";
|
||||
#ifdef TEST_SOURCE_DIR
|
||||
const char* file = TEST_SOURCE_DIR;
|
||||
|
|
Загрузка…
Ссылка в новой задаче