CMakeLists.txt (709B)
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 6 project(nissy_flutter_ffi_library VERSION 1.0.0 LANGUAGES C) 7 8 add_library(nissy_flutter_ffi SHARED 9 coord.c coord.h cube.c cube.h nissy.c solve.c solve.h steps.c steps.h 10 ) 11 12 set_target_properties(nissy_flutter_ffi PROPERTIES 13 PUBLIC_HEADER nissy.h 14 OUTPUT_NAME "nissy_flutter_ffi" 15 ) 16 17 if (WIN32) 18 set_target_properties(ffigen_app PROPERTIES 19 WINDOWS_EXPORT_ALL_SYMBOLS ON 20 ) 21 endif (WIN32) 22 23 target_compile_definitions(nissy_flutter_ffi PUBLIC DART_SHARED_LIB)