1 #SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--as-needed -Wl,--rpath=/usr/lib")
3 SET(UNITTEST_NAME "tct-connection-core")
5 SET(CAPI_LIB "capi-network-connection")
7 utc-connection-common.c
8 utc-connection-profile.c
9 utc-network-connection.c
10 utc-connection-extension.c
13 PKG_CHECK_MODULES(${CAPI_LIB} REQUIRED
22 ${${CAPI_LIB}_INCLUDE_DIRS}
23 ${CMAKE_SOURCE_DIR}/include
24 ${CMAKE_SOURCE_DIR}/src/include
25 ${CMAKE_CURRENT_SOURCE_DIR}/include
28 ADD_DEFINITIONS( -DMOBILE )
30 SET(CONNECTION_MOCK "connection-mock")
31 SET(CONNECTION_MOCK_SRCS mock/connection-mock.c)
32 SET(CONNECTION_MOCK_CFLAGS "${CMAKE_C_FLAGS}" )
33 ADD_LIBRARY(${CONNECTION_MOCK} SHARED ${CONNECTION_MOCK_SRCS})
34 SET_TARGET_PROPERTIES(${CONNECTION_MOCK} PROPERTIES
35 COMPILE_FLAGS ${CONNECTION_MOCK_CFLAGS}
38 ADD_EXECUTABLE(${UNITTEST_NAME} ${UNITTEST_NAME}.cpp ${TC_SOURCES} )
39 TARGET_LINK_LIBRARIES(${UNITTEST_NAME}
40 ${${CAPI_LIB}_LIBRARIES}
43 capi-network-connection
46 # INSTALL(PROGRAMS ${UNITTEST_NAME} DESTINATION ${BIN_INSTALL_DIR})