flutter_stockfish_plugin/linux/CMakeLists.txt

25 lines
1 KiB
Text
Raw Permalink Normal View History

2023-10-28 20:46:47 +02:00
# The Flutter tooling requires that developers have CMake 3.22 or later
# installed. You should not increase this version, as doing so will cause
# the plugin to fail to compile for some customers of the plugin.
cmake_minimum_required(VERSION 3.22)
# Project-level configuration.
set(PROJECT_NAME "flutter_stockfish_plugin")
2023-10-28 20:46:47 +02:00
project(${PROJECT_NAME} LANGUAGES CXX)
# Invoke the build for native code shared with the other target platforms.
# This can be changed to accomodate different builds.
2023-11-01 12:22:15 +01:00
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
2023-10-28 20:46:47 +02:00
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/../src" "${CMAKE_CURRENT_BINARY_DIR}/shared")
# List of absolute paths to libraries that should be bundled with the plugin.
# This list could contain prebuilt libraries, or libraries created by an
# external build triggered from this build file.
set(flutter_stockfish_plugin_bundled_libraries
2023-10-28 20:46:47 +02:00
# Defined in ../src/CMakeLists.txt.
# This can be changed to accomodate different builds.
$<TARGET_FILE:flutter_stockfish_plugin>
2023-10-28 20:46:47 +02:00
PARENT_SCOPE
)