mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 16:09:20 +00:00
81 lines
2.6 KiB
CMake
81 lines
2.6 KiB
CMake
############################################################################
|
|
# CMakeLists.txt
|
|
# Copyright (C) 2014 Belledonne Communications, Grenoble France
|
|
#
|
|
############################################################################
|
|
#
|
|
# This program is free software; you can redistribute it and/or
|
|
# modify it under the terms of the GNU General Public License
|
|
# as published by the Free Software Foundation; either version 2
|
|
# of the License, or (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
#
|
|
############################################################################
|
|
|
|
set(SOURCE_FILES
|
|
common/bc_tester_utils.c
|
|
accountmanager.c
|
|
call_tester.c
|
|
dtmf_tester.c
|
|
eventapi_tester.c
|
|
flexisip_tester.c
|
|
liblinphone_tester.c
|
|
log_collection_tester.c
|
|
message_tester.c
|
|
multi_call_tester.c
|
|
multicast_call_tester.c
|
|
offeranswer_tester.c
|
|
player_tester.c
|
|
presence_tester.c
|
|
proxy_config_tester.c
|
|
quality_reporting_tester.c
|
|
register_tester.c
|
|
remote_provisioning_tester.c
|
|
setup_tester.c
|
|
stun_tester.c
|
|
tester.c
|
|
tunnel_tester.c
|
|
upnp_tester.c
|
|
video_tester.c
|
|
)
|
|
|
|
add_definitions(-DBC_CONFIG_FILE="config.h")
|
|
|
|
if(IOS)
|
|
|
|
add_library(linphonetester STATIC ${SOURCE_FILES})
|
|
target_include_directories(linphonetester PUBLIC ${CUNIT_INCLUDE_DIRS} PRIVATE common)
|
|
target_link_libraries(linphonetester linphone ${CUNIT_LIBRARIES})
|
|
install(TARGETS linphonetester
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
|
|
)
|
|
install(FILES "liblinphone_tester.h" "common/bc_tester_utils.h"
|
|
DESTINATION include/linphone
|
|
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ
|
|
)
|
|
|
|
else()
|
|
|
|
add_executable(liblinphone_tester ${SOURCE_FILES})
|
|
set_target_properties(liblinphone_tester PROPERTIES LINKER_LANGUAGE CXX)
|
|
target_include_directories(liblinphone_tester PUBLIC ${CUNIT_INCLUDE_DIRS} PRIVATE common)
|
|
target_link_libraries(liblinphone_tester linphone ${CUNIT_LIBRARIES})
|
|
if (GTK2_FOUND)
|
|
target_compile_definitions(liblinphone_tester PRIVATE HAVE_GTK)
|
|
target_include_directories(liblinphone_tester PUBLIC ${GTK2_INCLUDE_DIRS})
|
|
target_link_libraries(liblinphone_tester linphone ${GTK2_LIBRARIES})
|
|
endif()
|
|
|
|
endif()
|
|
|