"Fossies" - the Fresh Open Source Software Archive

Member "flutter-1.22.4/packages/flutter_tools/templates/plugin/linux.tmpl/CMakeLists.txt.tmpl" (13 Nov 2020, 751 Bytes) of package /linux/misc/flutter-1.22.4.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 cmake_minimum_required(VERSION 3.10)
    2 set(PROJECT_NAME "{{projectName}}")
    3 project(${PROJECT_NAME} LANGUAGES CXX)
    4 
    5 set(PLUGIN_NAME "${PROJECT_NAME}_plugin")
    6 
    7 add_library(${PLUGIN_NAME} SHARED
    8   "${PLUGIN_NAME}.cc"
    9 )
   10 apply_standard_settings(${PLUGIN_NAME})
   11 set_target_properties(${PLUGIN_NAME} PROPERTIES
   12   CXX_VISIBILITY_PRESET hidden)
   13 target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL)
   14 target_include_directories(${PLUGIN_NAME} INTERFACE
   15   "${CMAKE_CURRENT_SOURCE_DIR}/include")
   16 target_link_libraries(${PLUGIN_NAME} PRIVATE flutter)
   17 target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK)
   18 
   19 # List of absolute paths to libraries that should be bundled with the plugin
   20 set({{projectName}}_bundled_libraries
   21   ""
   22   PARENT_SCOPE
   23 )