Use cxx linker for linphone GTK and liblinphone_tester when building with CMake.

This commit is contained in:
Ghislain MARY 2015-03-04 16:31:42 +01:00
parent 29873fe5e1
commit a705112921
2 changed files with 2 additions and 1 deletions

View file

@ -83,7 +83,7 @@ if(WIN32)
else()
add_executable(linphone-gtk ${SOURCE_FILES})
endif()
set_target_properties(linphone-gtk PROPERTIES OUTPUT_NAME linphone)
set_target_properties(linphone-gtk PROPERTIES OUTPUT_NAME linphone LINKER_LANGUAGE CXX)
target_include_directories(linphone-gtk PUBLIC ${GTK2_INCLUDE_DIRS} ${INTL_INCLUDE_DIRS})
target_link_libraries(linphone-gtk linphone ${GTK2_LIBRARIES})
if(INTL_LIBRARIES)

View file

@ -51,6 +51,7 @@ set(SOURCE_FILES
)
add_executable(liblinphone_tester ${SOURCE_FILES})
set_target_properties(liblinphone_tester PROPERTIES LINKER_LANGUAGE CXX)
target_include_directories(liblinphone_tester PUBLIC ${CUNIT_INCLUDE_DIRS})
target_link_libraries(liblinphone_tester linphone ${CUNIT_LIBRARIES})
if (GTK2_FOUND)