summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-05-17 19:13:24 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-05-28 12:50:42 +0000
commit9443239c2c01810189d63854393d43c493201c66 (patch)
tree017d1c7f31f12dfd420c064f3032b408e17a342c /cmake
parent9a4a2dd5189e1659bce46eacef513b0c5680bb1e (diff)
downloadqtimageformats-9443239c2c01810189d63854393d43c493201c66.tar.gz
Initial CMake Port
Port 90% of imageformats to be built with CMake. Missing support for mng plugin and documentation. Change-Id: I1d7e4b93c6f8446468f00dbf0663a6a4ec8c9774 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/FindWrapJasper.cmake11
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/FindWrapJasper.cmake b/cmake/FindWrapJasper.cmake
new file mode 100644
index 0000000..e25d21b
--- /dev/null
+++ b/cmake/FindWrapJasper.cmake
@@ -0,0 +1,11 @@
+set(WrapJasper_FOUND OFF)
+find_package(Jasper)
+
+if(Jasper_FOUND)
+ set(WrapJasper_FOUND ON)
+
+ # Upstream package does not provide targets, only variables. So define a target.
+ add_library(WrapJasper::WrapJasper INTERFACE IMPORTED)
+ target_link_libraries(WrapJasper::WrapJasper INTERFACE ${JASPER_LIBRARIES})
+ target_include_directories(WrapJasper::WrapJasper INTERFACE ${JASPER_INCLUDE_DIR})
+endif()