project(haiku)

cmake_minimum_required (VERSION 3.2.0)

if (HAIKU_PKG)
    install (CODE "
        EXECUTE_PROCESS (
            COMMAND rc -o \"${PROJECT_BINARY_DIR}/haiku.rsrc\"
                          \"${PROJECT_SOURCE_DIR}/haiku.rdef\"
            COMMAND xres -o \"${PROJECT_BINARY_DIR}/eiskaltdcpp-qt/eiskaltdcpp-qt\"
                            \"${PROJECT_BINARY_DIR}/haiku.rsrc\"  )")
endif ()
