编译sfml

1.安装依赖包

apt-get install -y libgl1-mesa-dev libglu1-mesa-dev libglut-dev libudev libu-dev libgudev libudev-dev libopenal-dev libvorbis-dev libflac-dev

2.常规cmake-gui

3.cmake

cmake_minimum_required(VERSION 3.13)
project(creative_gui)

set(CMAKE_CXX_STANDARD 11)
find_package(SFML 2.5.1 COMPONENTS graphics window system)

add_executable(creative_gui main.cpp)
target_link_libraries(creative_gui sfml-graphics sfml-window sfml-system)

你可能感兴趣的:(编译sfml)