cmake_minimum_required(VERSION 3.22.0)

project(libsokoengine VERSION 1.0.3 LANGUAGES CXX)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")

# Allow initializing cmake without searching for dependencies
# This is useful on CI when the only step we need to perform is building Doxygen docs.
if(NOT DEFINED ENV{SOKOENGINE_ONLY_DOCS})
    include(libsokoengine_global_features)
    include(libsokoengine_dependencies)
    include(libsokoengine_custom_targets)

    add_subdirectory(src/libsokoengine)
    add_subdirectory(src/sokoenginepyext)
endif()

include(libsokoengine_doxygen)

# include(CMakePrintHelpers)
# cmake_print_properties(
# TARGETS sokoengine
# PROPERTIES
# COMPILE_FEATURES COMPILE_FLAGS COMPILE_OPTIONS
# LINK_OPTIONS LINK_FLAGS INTERPROCEDURAL_OPTIMIZATION
# )
