CMakeLists.txt 660 B

1234567891011121314151617181920212223
  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. add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>")
  13. set_target_properties(pocketpy PROPERTIES
  14. PUBLIC_HEADER pocketpy.h
  15. OUTPUT_NAME "pocketpy"
  16. )
  17. target_compile_definitions(pocketpy PUBLIC DART_SHARED_LIB)