2021-11-19 10:50:09 +03:00
|
|
|
cmake_minimum_required(VERSION 3.14)
|
|
|
|
project(runner LANGUAGES CXX)
|
|
|
|
|
|
|
|
add_executable(${BINARY_NAME} WIN32
|
|
|
|
"flutter_window.cpp"
|
|
|
|
"main.cpp"
|
|
|
|
"utils.cpp"
|
|
|
|
"win32_window.cpp"
|
|
|
|
"${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc"
|
|
|
|
"Runner.rc"
|
|
|
|
"runner.exe.manifest"
|
|
|
|
)
|
|
|
|
apply_standard_settings(${BINARY_NAME})
|
|
|
|
target_compile_definitions(${BINARY_NAME} PRIVATE "NOMINMAX")
|
|
|
|
target_link_libraries(${BINARY_NAME} PRIVATE flutter flutter_wrapper_app)
|
|
|
|
target_include_directories(${BINARY_NAME} PRIVATE "${CMAKE_SOURCE_DIR}")
|
|
|
|
add_dependencies(${BINARY_NAME} flutter_assemble)
|
2021-11-19 14:58:16 +03:00
|
|
|
|
|
|
|
# This can probably be done in a cleaner way.
|
2022-02-10 15:36:38 +03:00
|
|
|
file(COPY "../../build/windows/ykman-rpc" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/Release")
|
|
|
|
file(COPY "../../build/windows/ykman-rpc" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}/Debug")
|