#set common includes
set(sc_includes
        ${CMAKE_CURRENT_SOURCE_DIR}/core
        ${CMAKE_CURRENT_SOURCE_DIR}/utils
        ${CMAKE_SOURCE_DIR}/3rd_party/gemmi/include
        ${CMAKE_SOURCE_DIR}/3rd_party/xxHash)

#set common sources
file(GLOB core_sources ${CMAKE_CURRENT_SOURCE_DIR}/core/*.cpp)
# gemmi 0.7+ is no longer fully header-only: spacegroup tables, parse_triplet,
# find_spacegroup_by_name and Op::triplet/inverse moved to src/symmetry.cpp.
# Our usage needs only that one TU; everything else (cif::read_file, Element,
# UnitCell, Mat33) is still header-inline.
set(sc_sources ${core_sources}
        ${CMAKE_CURRENT_SOURCE_DIR}/utils/others/string_utils.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/utils/cryst_tools/cryst_tools.cpp
        ${CMAKE_CURRENT_SOURCE_DIR}/utils/cryst_tools/comb_points.cpp
        ${CMAKE_SOURCE_DIR}/3rd_party/gemmi/src/symmetry.cpp)

add_subdirectory(sc_cli)
if(BUILD_TESTING)
    add_subdirectory(tests)
endif()
