Skip to content
This repository
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 66 lines (52 sloc) 1.561 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
#/**********************************************************\
#
# Auto-generated CMakeLists.txt for the linphone-js project
#
#\**********************************************************/

# Written to work with cmake 2.6
cmake_minimum_required (VERSION 2.6)
set (CMAKE_BACKWARDS_COMPATIBILITY 2.6)

Project(${PLUGIN_NAME})

file (GLOB GENERAL RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
    [^.]*.cpp
    [^.]*.h
    [^.]*.cmake
    )

INCLUDE_DIRECTORIES(${PLUGIN_INCLUDE_DIRS})


# add linphone core includes
SET(LINPHONE_CORE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/3rdParty/linphone/")
INCLUDE_DIRECTORIES(
  ${LINPHONE_CORE_PATH}/oRTP/include
  ${LINPHONE_CORE_PATH}/mediastreamer2/include
  ${LINPHONE_CORE_PATH}/coreapi
  ${LINPHONE_CORE_PATH}/
)

# Generated files are stored in ${GENERATED} by the project configuration
SET_SOURCE_FILES_PROPERTIES(
    ${GENERATED}
    PROPERTIES
        GENERATED 1
    )

SOURCE_GROUP(Generated FILES
    ${GENERATED}
    )

SET( SOURCES
    ${GENERAL}
    ${GENERATED}
    )

#SET(CPACK_GENERATOR "STGZ;TGZ;TZ;ZIP")
SET(CPACK_GENERATOR "ZIP")
SET(CPACK_PACKAGE_NAME "linphone-js")
SET(CPACK_PACKAGE_FILE_NAME "linphone-js")

# This will include Win/projectDef.cmake, X11/projectDef.cmake, Mac/projectDef
# depending on the platform
include_platform()

#message("Will generate ${CPACK_GENERATOR}")

INSTALL(TARGETS ${PLUGIN_NAME}
  DESTINATION lib/mozilla/plugins
# RUNTIME DESTINATION bin
# LIBRARY DESTINATION lib
# ARCHIVE DESTINATION lib
)

# must be last one, because it overwrites variables otherwise
INCLUDE(CPack)
Something went wrong with that request. Please try again.