tools/corrosion/cmake/CorrosionConfig.cmake.in
author unC0Rr
Wed, 28 Aug 2024 15:31:51 +0200
branchtransitional_engine
changeset 16050 6a3dc15b78b9
child 16067 d903f8d2395a
permissions -rw-r--r--
Add corrosion as a subdirectory, CMake fixes

@PACKAGE_INIT@

if (Corrosion_FOUND)
    return()
endif()

list(APPEND CMAKE_MODULE_PATH "${PACKAGE_PREFIX_DIR}/@CMAKE_INSTALL_DATADIR@/cmake")

set(CORROSION_NATIVE_TOOLING_INSTALLED @CORROSION_NATIVE_TOOLING@)
if(CORROSION_NATIVE_TOOLING_INSTALLED AND NOT TARGET Corrosion::Generator)
    add_executable(Corrosion::Generator IMPORTED GLOBAL)

    set_property(
        TARGET Corrosion::Generator
        PROPERTY IMPORTED_LOCATION "@CMAKE_INSTALL_FULL_LIBEXECDIR@/corrosion-generator")
endif()

include(Corrosion)