cmake_minimum_required(VERSION 3.20)

set(CMAKE_CXX_FLAGS "-std=c++26 -Wno-error -O0 -w -g -mavx2")
file(GLOB_RECURSE ANIMSOURCES CONFIGURE_DEPENDS "src/*.cpp")
add_executable(animatronical-1 ${ANIMSOURCES})
if(NOT DEFINED ${ARCH})
    set(ARCH "linux-64")
endif(NOT DEFINED ${ARCH})
set_target_properties(animatronical-1 PROPERTIES
        RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/built/ani/1/1/${PLATFORM_DIR}/bin"
)

target_link_directories(
        animatronical-1 PUBLIC
        "${CMAKE_SOURCE_DIR}/link")
target_link_libraries(animatronical-1 PRIVATE
        enginend
        raylib
)
target_include_directories(animatronical-1 PUBLIC
        ${CMAKE_SOURCE_DIR}/include
)