cmake_minimum_required(VERSION 3.6) project(untitled) set(CMAKE_CXX_STANDARD 11) set(SOURCE_FILES main.cpp) set(EXECUTABLE_NAME "untitled") add_executable(${EXECUTABLE_NAME} ${SOURCE_FILES}) # Detect and add SFMLset(CMAKE_MODULE_PATH "C:/SFML-2.4.1/cmake/Modules" ${CMAKE_MODULE_PATH}) #set(SFML_STATIC_LIBRARIES TRUE)find_package(SFML 2.4 COMPONENTS system window graphics network audio REQUIRED) if(SFML_FOUND) include_directories(${SFML_INCLUDE_DIR}) target_link_libraries(${EXECUTABLE_NAME} ${SFML_LIBRARIES}) endif()
Monday, January 23, 2017
SFML 2.4 new cmake
Subscribe to:
Posts (Atom)