mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 05:21:29 +08:00
099507df39
* [llvm] update to 13.0.0 * add version * [llvm] rework processing of the CMake packages * update versions * [llvm] return patch to fix config paths * update version * [llvm] allow to build Flang on Windows * add version * [llvm] temporary enable Flang by default for test * update version * [llvm] fix Flang installation * update version * [llvm] try to fix Flang build * update version * [llvm] remove Flang from defaults and use Perl path * [halide] update to 13.0.0 * update versions * [mesa] update to v21.2.5 and fix build with LLVM 13 * [llvm] use version * update versions * [opencv4] fix build with Halide 13 * update version * update ci.baseline * [halide] update usage file * [llvm] update supports * update versions * [vcpkg-ci-llvm] add test port * [vcpkg-ci-llvm] rework test port * [vcpkg-ci-llvm] test more features * [halide] update to v13.0.1 * update version * [mesa] recover port version * update versions * [opencv4] update version * update version * Update opencv4.json * [halide] update to v13.0.2 and fix usage * update version * Update ports/halide/portfile.cmake Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * update version * enable LLVM ABI breaking checks to avoid Halide build fail Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
The package halide provides CMake targets:
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
set(CMAKE_CXX_STANDARD_REQUIRED YES)
|
|
set(CMAKE_CXX_EXTENSIONS NO)
|
|
|
|
find_package(Halide REQUIRED)
|
|
|
|
# JIT mode:
|
|
add_executable(my_halide_app main.cpp)
|
|
target_link_libraries(my_halide_app PRIVATE Halide::Halide)
|
|
|
|
# AOT mode:
|
|
add_executable(my_generators my_generators.cpp)
|
|
target_link_libraries(my_generators PRIVATE Halide::Generator)
|
|
add_halide_library(my_first_generator FROM my_generators)
|
|
add_halide_library(my_second_generator FROM my_generators
|
|
PARAMS parallel=false scale=3.0 rotation=ccw output.type=uint16)
|
|
add_halide_library(my_second_generator_2 FROM my_generators
|
|
GENERATOR my_second_generator
|
|
PARAMS scale=9.0 rotation=ccw output.type=float32)
|
|
add_halide_library(my_second_generator_3 FROM my_generators
|
|
GENERATOR my_second_generator
|
|
PARAMS parallel=false output.type=float64)
|
|
|
|
For more information see:
|
|
https://github.com/halide/Halide/blob/@HALIDE_VERSION_TAG@/README_cmake.md
|