cmake_minimum_required(VERSION 3.17) project(sfml1217) set(CMAKE_CXX_STANDARD 11) set(SFML_DIR "/opt/homebrew/Cellar/sfml/2.6.1/lib/cmake/SFML") find_package(SFML REQUIRED system window graphics) add_executable(sfml1217 main.cpp) target_link_libraries(sfml1217 sfml-graphics sfml-window sfml-system)
sfml的clion的cmakelist的编写示例
最新推荐文章于 2024-01-19 16:12:19 发布