2 desc "CMake Resource Compiler"
3 homepage "https://github.com/vector-of-bool/cmrc"
4 url "https://github.com/vector-of-bool/cmrc/archive/refs/tags/2.0.1.tar.gz"
5 sha256 "edad5faaa0bea1df124b5e8cb00bf0adbd2faeccecd3b5c146796cbcb8b5b71b"
7 head "https://github.com/vector-of-bool/cmrc.git", branch: "master"
11 sha256 cellar: :any_skip_relocation, all: "33e1b8facfc9147d12e16f1ea45cb08c26f6e4d9ee5100b298f76a0f01a475ae"
14 depends_on "cmake" => [:build, :test]
17 (share/"cmake").install "CMakeRC.cmake"
18 (share/"CMakeRC/cmake").install_symlink share/"cmake/CMakeRC.cmake" => "CMakeRCConfig.cmake"
22 cmakelists = testpath/"CMakeLists.txt"
23 cmakelists.write <<~CMAKE
24 cmake_minimum_required(VERSION 3.30)
27 system "cmake", "-S", ".", "-B", "build1", "-DCMAKE_MODULE_PATH=#{share}/cmake", *std_cmake_args
30 cmakelists.write <<~CMAKE
31 cmake_minimum_required(VERSION 3.30)
32 find_package(CMakeRC CONFIG REQUIRED)
35 system "cmake", "-S", ".", "-B", "build2", *std_cmake_args