cmake_minimum_required(VERSION 3.0.0)
project(Tic-Tac-Toe VERSION 0.1.0)

find_package(SDL2 CONFIG REQUIRED)

add_executable(Tic-Tac-Toe main.cpp)

target_link_libraries(Tic-Tac-Toe
    PRIVATE
    $<TARGET_NAME_IF_EXISTS:SDL2::SDL2main>
    $<IF:$<TARGET_EXISTS:SDL2::SDL2>,SDL2::SDL2,SDL2::SDL2-static>
)

set(CPACK_PROJECT_NAME ${PROJECT_NAME})
set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
include(CPack)
