CMakeLists.txt 589 B

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