Skip to content

Commit

Permalink
update gpuimage, add example (objective-c++)
Browse files Browse the repository at this point in the history
  • Loading branch information
headupinclouds committed Jan 25, 2018
1 parent ae05e03 commit 879dab9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/configs/default.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ hunter_config(Expat VERSION 2.1.1)
if(MSVC)
hunter_config(getopt VERSION 1.0.0-p0)
endif()
hunter_config(GPUImage VERSION 0.1.6-p6)
hunter_config(GPUImage VERSION 0.1.6-p7)
hunter_config(GSL VERSION 2.1.0-p2)
hunter_config(Igloo VERSION 1.1.1-hunter)
hunter_config(intsizeof VERSION 2.0.1)
Expand Down
11 changes: 11 additions & 0 deletions cmake/projects/GPUImage/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ hunter_add_version(
230f9f9ba0fe1cce96827ea0cfc944b6df05ec34
)

hunter_add_version(
PACKAGE_NAME
GPUImage
VERSION
"0.1.6-p7"
URL
"https://github.com/hunter-packages/GPUImage/archive/v0.1.6-p7.tar.gz"
SHA1
9ca6d9b683d56a78d6c5925e04c0d6952bd2bf3c
)

hunter_cmake_args(
GPUImage
CMAKE_ARGS GPUIMAGE_BUILD_EXAMPLES=OFF
Expand Down
17 changes: 17 additions & 0 deletions examples/GPUImage/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright (c) 2016-2018, Ruslan Baratov
# Copyright (c) 2018, David Hirvonen
# All rights reserved.

cmake_minimum_required(VERSION 3.0)

# Emulate HunterGate:
# * https://github.com/hunter-packages/gate
include("../common.cmake")

project(download-GPUImage)

hunter_add_package(GPUImage)
find_package(GPUImage CONFIG REQUIRED)

add_executable(foo foo.mm)
target_link_libraries(foo GPUImage::gpuimage)
5 changes: 5 additions & 0 deletions examples/GPUImage/foo.mm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#include <GPUImage/GPUImageGrayscaleFilter.h>

int main() {
auto *filter = [[GPUImageGrayscaleFilter alloc] init];
}

0 comments on commit 879dab9

Please sign in to comment.