CMakeLists.txt 572 B

1234567891011121314151617
  1. cmake_minimum_required(VERSION 3.14)
  2. project(runner LANGUAGES CXX)
  3. add_executable(${BINARY_NAME} WIN32
  4. "flutter_window.cpp"
  5. "main.cpp"
  6. "utils.cpp"
  7. "win32_window.cpp"
  8. "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
  9. "Runner.rc"
  10. "runner.exe.manifest"
  11. )
  12. apply_standard_settings(${BINARY_NAME})
  13. target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
  14. target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
  15. target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
  16. add_dependencies(${BINARY_NAME} flutter_assemble)