On the Ubuntu Software “Search Bar” at the top, type the word CMake and press “Enter.” You will see a list of applications but only Click on the CMake icon.
#SETTING UP CMAKE LINUX INSTALL#
Launch Software Install from Ubuntu Applications Launch the “Ubuntu Software Install” from the Ubuntu applications menu, as shown in the image below. As of writing this post, the available stable version of CMake is 3.17.3. Please consult the upstream Rust documentation to find the correct target name.If you don’t want to go about executing a bunch of commands on the Linux Terminal, then this method is for you. Matches the target architecture that you’re compiling to. Since SixtyFPS is implemented using the Rust programming language, you need to determine which Rust target If you are building against a Yocto SDK, it is sufficient to source the SDK’s environment setup file.
#SETTING UP CMAKE LINUX HOW TO#
How to set this up in the upstream CMake documentation. That, you need to make sure that your CMake setup is ready for cross-compilation. It is possible to cross-compile SixtyFPS to a different target architecture when building with CMake. This works when compiling SixtyFPS as a package, using cmake -build and cmake -install, or when including SixtyFPS For example on the command line using the -D parameter:Īlternatively, after the configure step you can use cmake-gui or ccmake on the build directory for a list of all features There areĭifferent ways of toggling CMake options. You can enable support for the Wayland windowing system on Linux by enabling the SIXTYFPS_FEATURE_WAYLAND feature. The CMake configure step offers CMake options for various feature that are all prefixed with SIXTYFPS_FEATURE_. Therefore reduce the size of the resulting library. Not enabled by default but that is revelant for you, or you may want to disable a feature that you know you do not need and You might want to enable a feature that is The SixtyFPS run-time library supports different features that can be toggled. If you prefer to treat SixtyFPS as an external CMake package, then you can also build SixtyFPS from source like a regularĬMake project, install it into a prefix directory of your choice and use find_package(SixtyFPS) in your CMakeLists.txt. Include ( FetchContent ) FetchContent_Declare ( SixtyFPS GIT_REPOSITORY GIT_TAG v0.1.4 SOURCE_SUBDIR api/sixtyfps-cpp ) FetchContent_MakeAvailable ( SixtyFPS ) Insert the following snippet into your CMakeLists.txt to make CMake download the latest release, compile it and make the CMake integration available:
You can include SixtyFPS in your CMake project using CMake’s FetchContent feature. You should have the rustc compiler and the cargo build system installed in your path.Ī C++ compiler that supports C++17 (e.g., MSVC 2019 on Windows) Install Rust by following the Rust Getting Started Guide. The recommended and most flexible way to use the C++ API is to build SixtyFPS from sources.įirst you need to install the prerequisites: You can select the CMake Ninja backend by passing -GNinja or setting the CMAKE_GENERATOR environment variable to Ninja.
#SETTING UP CMAKE LINUX GENERATOR#
Note: We recommend using the Ninja generator of CMake for the most efficient build and. Offers a CMake target for convenient linkage. SixtyFPS comes with a CMake integration that automates the compilation step of the. Function sixtyfps::testing::send_keyboard_string_sequence.Template Function sixtyfps::invoke_from_event_loop.Template Function sixtyfps::blocking_invoke_from_event_loop.