include(CheckIncludeFileCXX)
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+CMAKE_MINIMUM_REQUIRED(VERSION 3.8.2)
+SET(CMAKE_CXX_STANDARD 17)
+
PROJECT(tct_coreapi_utc)
INCLUDE(FindPkgConfig)
ADD_EXECUTABLE(${EXEC_NAME} ${EXEC_NAME}.cpp ${TC_SOURCES})
TARGET_LINK_LIBRARIES(${EXEC_NAME}
${${CAPI_LIB}_LIBRARIES}
- -lpthread --coverage
+ -lpthread --coverage -rdynamic
)
INSTALL(PROGRAMS ${EXEC_NAME}
SET(ADDON_SOURCES addons/test-sample-addon.cpp )
ADD_LIBRARY( ${ADDON_NAME} SHARED ${ADDON_SOURCES} )
TARGET_LINK_LIBRARIES(${ADDON_NAME}
- -lpthread -ldl --coverage
+ -lpthread -ldl --coverage -rdynamic
)
INSTALL( TARGETS ${ADDON_NAME} DESTINATION ${BIN_DIR} )
# store AddOn list
FILE( WRITE ${CMAKE_CURRENT_BINARY_DIR}/addons.txt lib${ADDON_NAME}.so )
-
#define END_TEST \
return ((test_return_value>0)?1:0)
+extern "C"
+{
void tet_infoline(const char* str)
{
vfprintf(stderr, format, arg);
va_end(arg);
}
+}
+
bool operator==(TimePeriod a, TimePeriod b)
{
#include <dali/public-api/dali-core.h>
#include <test-compare-types.h>
+extern "C"
+{
void tet_infoline(const char*str);
void tet_printf(const char *format, ...);
+}
#include "test-application.h"
#include "test-actor-utils.h"