|
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.10)
|
|
project(runner LANGUAGES CXX)
|
|
project(runner LANGUAGES CXX)
|
|
|
|
|
|
set(BINARY_NAME "AppFlowy")
|
|
set(BINARY_NAME "AppFlowy")
|
|
-set(APPLICATION_ID "io.appflowy.appflowy")
|
|
|
|
|
|
+set(APPLICATION_ID "io.appflowy.AppFlowy")
|
|
|
|
|
|
cmake_policy(SET CMP0063 NEW)
|
|
cmake_policy(SET CMP0063 NEW)
|
|
|
|
|
|
@@ -55,6 +55,7 @@ apply_standard_settings(${BINARY_NAME})
|
|
target_link_libraries(${BINARY_NAME} PRIVATE flutter)
|
|
target_link_libraries(${BINARY_NAME} PRIVATE flutter)
|
|
target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
|
|
target_link_libraries(${BINARY_NAME} PRIVATE PkgConfig::GTK)
|
|
add_dependencies(${BINARY_NAME} flutter_assemble)
|
|
add_dependencies(${BINARY_NAME} flutter_assemble)
|
|
|
|
+
|
|
# Only the install-generated bundle's copy of the executable will launch
|
|
# Only the install-generated bundle's copy of the executable will launch
|
|
# correctly, since the resources must in the right relative locations. To avoid
|
|
# correctly, since the resources must in the right relative locations. To avoid
|
|
# people trying to run the unbundled copy, put it in a subdirectory instead of
|
|
# people trying to run the unbundled copy, put it in a subdirectory instead of
|
|
@@ -68,11 +69,11 @@ set_target_properties(${BINARY_NAME}
|
|
# them to the application.
|
|
# them to the application.
|
|
include(flutter/generated_plugins.cmake)
|
|
include(flutter/generated_plugins.cmake)
|
|
|
|
|
|
-
|
|
|
|
# === Installation ===
|
|
# === Installation ===
|
|
# By default, "installing" just makes a relocatable bundle in the build
|
|
# By default, "installing" just makes a relocatable bundle in the build
|
|
# directory.
|
|
# directory.
|
|
set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
|
|
set(BUILD_BUNDLE_DIR "${PROJECT_BINARY_DIR}/bundle")
|
|
|
|
+
|
|
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|
set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
|
|
set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
|
|
endif()
|
|
endif()
|