-
Notifications
You must be signed in to change notification settings - Fork 69
/
Config.cmake.in
52 lines (33 loc) · 1.14 KB
/
Config.cmake.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#[=======================================================================[.rst:
GPUJPEG
-------
Defines variables to import GPUJPEG to own project.
IMPORTED Targets
^^^^^^^^^^^^^^^^
This module defines the :prop_tgt:`IMPORTED` targets:
``gpujpeg``
Defines GPUJPEG library.
``gpujpeg-bin``
Defines GPUJPEG console application.
Result Variables
^^^^^^^^^^^^^^^^
Additionally this module sets the following variable::
GPUJPEG_LIBRARIES - the library to link against
Usage
^^^^^
After creating a project find GPUJPEG and add some source code::
cmake_minimum_required(VERSION 3.16)
project(test)
find_package(GPUJPEG REQUIRED)
add_executable(app main.c)
To use the GPUJPEG library, either import the library target (preferred)::
target_link_libraries(app PRIVATE gpujpeg)
Alternatively you can utilize the variable GPUJPEG_LIBRARIES::
target_link_libraries(app ${GPUJPEG_LIBRARIES})
#]=======================================================================]
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/GPUJPEGTargets.cmake")
set(GPUJPEG_LIBRARIES "-lgpujpeg")
if(NOT "@BUILD_SHARED_LIBS@")
add_definitions("-DGPUJPEG_STATIC")
endif()