CMakeLists.txt 1002 bytes
cmake_minimum_required(VERSION 3.0)
project(MyProject)
add_executable(${PROJECT_NAME} "source/main.cpp" "States/IState.h" "States/IStateManager.h" "States/Application/Application.cpp" "States/SelectState/SelectState.h" "States/IWindowKeeper/IWindowKeeper.h" "States/ExitState/ExitState.h" "States/SelectState/SelectState.cpp" "States/GameState/GameState.h" "States/GameState/GameState.cpp" "States/IDrawable.h" "States/Button/Button.h" "States/Button/Command/ISelectCommand.h" "States/Menu/Menu.h" "States/Button/Button.cpp" "States/Menu/Menu.cpp" "States/Button/Myfont.h" "States/Button/Command/ChangeStateCommand.h" "States/Button/Command/ExitCommand.h" "States/Button/Command/GameCommand.h" "States/Button/GameBuilderDirector.h")
set(SFML_STATIC_LIBRARIES TRUE) 
find_package(SFML COMPONENTS graphics window system REQUIRED)
target_link_libraries(${PROJECT_NAME} PRIVATE sfml-window sfml-system sfml-graphics)
target_include_directories(${PROJECT_NAME} PRIVATE "C:/Program Files (x86)/SFML/include")