cmake_minimum_required (VERSION 3.5)

project (animationwindow CXX)

set(CMAKE_CXX_STANDARD 20)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set (CMAKE_VERBOSE_MAKEFILE 0) # 1 should be used for debugging
set (CMAKE_SUPPRESS_REGENERATION TRUE) # Suppresses ZERO_CHECK

add_subdirectory(../SDL2 SDL2)
add_subdirectory(../SDL2-image SDL2-image)



add_library(animationwindow 
    src/AnimationWindow.cpp
    src/Color.cpp
    src/Image.cpp 
    src/Widget.cpp 
    src/internal/FontCache.cpp 
    src/internal/KeyboardKeyConverter.cpp 
    src/internal/nuklear_implementation.cpp 
    src/widgets/Button.cpp 
    src/widgets/DropdownList.cpp 
    src/widgets/TextInput.cpp 
)

target_include_directories(animationwindow PUBLIC 
    ../SDL2/include
    ../SDL2-image/include
    include/
)
target_link_libraries (animationwindow SDL2 SDL2_image::SDL2_image) # lsan