cmake_minimum_required(VERSION 3.20.0)

project(otoolrecursive LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

add_executable(otoolrecursive main.cpp
  loaderpathresolver.h loaderpathresolver.cpp)

include(GNUInstallDirs)
install(TARGETS otoolrecursive
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
