Build linphone GTK as a UI application when building with Visual Studio.

This commit is contained in:
Ghislain MARY 2015-02-27 22:36:31 +01:00
parent 988eb5c02d
commit 2e4ff135ef
2 changed files with 10 additions and 1 deletions

View file

@ -77,7 +77,11 @@ if(GETTEXT_FOUND)
add_definitions("-DENABLE_NLS")
endif()
add_executable(linphone-gtk ${SOURCE_FILES})
if(WIN32)
add_executable(linphone-gtk WIN32 ${SOURCE_FILES})
else()
add_executable(linphone-gtk ${SOURCE_FILES})
endif()
set_target_properties(linphone-gtk PROPERTIES OUTPUT_NAME linphone)
target_include_directories(linphone-gtk PUBLIC ${GTK2_INCLUDE_DIRS} ${INTL_INCLUDE_DIRS})
target_link_libraries(linphone-gtk linphone ${GTK2_LIBRARIES} ${INTL_LIBRARIES})

View file

@ -2269,3 +2269,8 @@ core_start:
return 0;
}
#ifdef _MSC_VER
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
return main(__argc, __argv);
}
#endif