Commit 801f962c authored by Julien Wadel's avatar Julien Wadel

Reduce names

parent 63fbfda5
......@@ -21,7 +21,8 @@
################################################################################
cmake_minimum_required(VERSION 3.1)
project(linphone-app-contacts-api CXX)
project(app-contacts CXX)
set(TARGET_NAME app-contacts)
include(GNUInstallDirs)
......@@ -45,16 +46,16 @@ find_package(LinphoneCxx CONFIG)
#-------------------------------------------------------------------------------
#add_custom_target(contactsPlugin ALL)
add_library(linphone-app-contacts-api STATIC ${SOURCES} ${HEADERS} )
target_link_libraries(linphone-app-contacts-api PRIVATE Qt5::Widgets Qt5::Network ${LINPHONECXX_LIBRARIES})
target_include_directories(linphone-app-contacts-api PRIVATE ${LINPHONECXX_INCLUDE_DIRS})
add_library(${TARGET_NAME} STATIC ${SOURCES} ${HEADERS} )
target_link_libraries(${TARGET_NAME} PRIVATE Qt5::Widgets Qt5::Network ${LINPHONECXX_LIBRARIES})
target_include_directories(${TARGET_NAME} PRIVATE ${LINPHONECXX_INCLUDE_DIRS})
#install(FILES "src/ContactsImporterPlugin.hpp" DESTINATION "include/linphoneapp/contacts")
configure_file("src/ContactsImporterPlugin.hpp" "${CMAKE_INSTALL_PREFIX}/include/linphoneapp/contacts/ContactsImporterPlugin.hpp" COPYONLY)
configure_file("src/ContactsImporterNetworkAPI.hpp" "${CMAKE_INSTALL_PREFIX}/include/linphoneapp/contacts/ContactsImporterNetworkAPI.hpp" COPYONLY)
configure_file("src/ContactsImporterDataAPI.hpp" "${CMAKE_INSTALL_PREFIX}/include/linphoneapp/contacts/ContactsImporterDataAPI.hpp" COPYONLY)
set_target_properties(linphone-app-contacts-api PROPERTIES OUTPUT_NAME "linphoneAppContactsApi")
set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME "linphoneAppContacts")
install(TARGETS linphone-app-contacts-api
install(TARGETS ${TARGET_NAME}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment