hang-man/CMakeLists.txt
2024-08-02 15:18:56 +02:00

26 lines
540 B
CMake

cmake_minimum_required(VERSION 3.20)
project(hang_man)
set(CMAKE_CXX_STANDARD 20)
if (NOT DEFINED CMAKE_TOOLCHAIN_FILE)
set(CMAKE_TOOLCHAIN_FILE "${CMAKE_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake")
endif ()
find_package(SDL2 CONFIG REQUIRED)
find_package(CURL REQUIRED)
add_executable(hang_man src/main.cpp
src/Game.cpp
src/Game.hpp
src/State.hpp
src/words.hpp
src/words.cpp
)
target_link_libraries(hang_man PRIVATE
SDL2::SDL2
SDL2::SDL2main
CURL::libcurl
)