CMakeLists.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # The Flutter tooling requires that developers have CMake 3.10 or later
  2. # installed. You should not increase this version, as doing so will cause
  3. # the plugin to fail to compile for some customers of the plugin.
  4. cmake_minimum_required(VERSION 3.10)
  5. # Project-level configuration.
  6. set(PROJECT_NAME "flowy_board")
  7. project(${PROJECT_NAME} LANGUAGES CXX)
  8. # This value is used when generating builds using this plugin, so it must
  9. # not be changed.
  10. set(PLUGIN_NAME "flowy_board_plugin")
  11. # Define the plugin library target. Its name must not be changed (see comment
  12. # on PLUGIN_NAME above).
  13. #
  14. # Any new source files that you add to the plugin should be added here.
  15. add_library(${PLUGIN_NAME} SHARED
  16. "flowy_board_plugin.cc"
  17. )
  18. # Apply a standard set of build settings that are configured in the
  19. # application-level CMakeLists.txt. This can be removed for plugins that want
  20. # full control over build settings.
  21. apply_standard_settings(${PLUGIN_NAME})
  22. # Symbols are hidden by default to reduce the chance of accidental conflicts
  23. # between plugins. This should not be removed; any symbols that should be
  24. # exported should be explicitly exported with the FLUTTER_PLUGIN_EXPORT macro.
  25. set_target_properties(${PLUGIN_NAME} PROPERTIES
  26. CXX_VISIBILITY_PRESET hidden)
  27. target_compile_definitions(${PLUGIN_NAME} PRIVATE FLUTTER_PLUGIN_IMPL)
  28. # Source include directories and library dependencies. Add any plugin-specific
  29. # dependencies here.
  30. target_include_directories(${PLUGIN_NAME} INTERFACE
  31. "${CMAKE_CURRENT_SOURCE_DIR}/include")
  32. target_link_libraries(${PLUGIN_NAME} PRIVATE flutter)
  33. target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK)
  34. # List of absolute paths to libraries that should be bundled with the plugin.
  35. # This list could contain prebuilt libraries, or libraries created by an
  36. # external build triggered from this build file.
  37. set(flowy_board_bundled_libraries
  38. ""
  39. PARENT_SCOPE
  40. )