CMakeLists.txt 602 B

123456789101112131415161718192021
  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. set(CMAKE_CXX_STANDARD 17)
  6. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  7. set(ANDROID_STL c++_static)
  8. project(pocketpy_library VERSION 0.0.1 LANGUAGES CXX)
  9. add_library(pocketpy SHARED
  10. "pocketpy.cpp"
  11. )
  12. set_target_properties(pocketpy PROPERTIES
  13. PUBLIC_HEADER pocketpy.h
  14. OUTPUT_NAME "pocketpy"
  15. )
  16. target_compile_definitions(pocketpy PUBLIC DART_SHARED_LIB)