|
1 | 1 | # Project-level configuration. |
2 | | -cmake_minimum_required(VERSION 3.10) |
| 2 | +cmake_minimum_required(VERSION 3.13) |
3 | 3 | project(runner LANGUAGES CXX) |
4 | 4 |
|
5 | 5 | # The name of the executable created for the application. Change this to change |
@@ -54,25 +54,8 @@ add_subdirectory(${FLUTTER_MANAGED_DIR}) |
54 | 54 | find_package(PkgConfig REQUIRED) |
55 | 55 | pkg_check_modules(GTK REQUIRED IMPORTED_TARGET gtk+-3.0) |
56 | 56 |
|
57 | | -add_definitions(-DAPPLICATION_ID="${APPLICATION_ID}") |
58 | | - |
59 | | -# Define the application target. To change its name, change BINARY_NAME above, |
60 | | -# not the value here, or `flutter run` will no longer work. |
61 | | -# |
62 | | -# Any new source files that you add to the application should be added here. |
63 | | -add_executable(${BINARY_NAME} |
64 | | - "main.cc" |
65 | | - "my_application.cc" |
66 | | - "${FLUTTER_MANAGED_DIR}/generated_plugin_registrant.cc" |
67 | | -) |
68 | | - |
69 | | -# Apply the standard set of build settings. This can be removed for applications |
70 | | -# that need different build settings. |
71 | | -apply_standard_settings(${BINARY_NAME}) |
72 | | - |
73 | | -# Add dependency libraries. Add any application-specific dependencies here. |
74 | | -target_link_libraries(${BINARY_NAME} PRIVATE flutter) |
75 | | -target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK) |
| 57 | +# Application build; see runner/CMakeLists.txt. |
| 58 | +add_subdirectory("runner") |
76 | 59 |
|
77 | 60 | # Run the Flutter tool portions of the build. This must not be removed. |
78 | 61 | add_dependencies(${BINARY_NAME} flutter_assemble) |
|
0 commit comments