summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Leigh <rleigh@codelibre.net>2021-01-01 21:45:00 +0000
committerRoger Leigh <rleigh@codelibre.net>2021-01-01 22:24:01 +0000
commitd730cb33db227775c963402b885d1f242c0d508b (patch)
tree8f60a4a3274a980b1b6c9a9eab501b510eb3a7c4
parentf2bc2e9d6b34d1f70ad2d48237a21dfdcfaed9c8 (diff)
downloadlibtiff-git-d730cb33db227775c963402b885d1f242c0d508b.tar.gz
cmake: Add faxtable and mkg3states targets
-rw-r--r--libtiff/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/libtiff/CMakeLists.txt b/libtiff/CMakeLists.txt
index 080685db..c4082829 100644
--- a/libtiff/CMakeLists.txt
+++ b/libtiff/CMakeLists.txt
@@ -167,3 +167,12 @@ if(CXX_SUPPORT)
DESTINATION "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
endif()
+
+add_executable(mkg3states mkg3states.c tif_fax3.h)
+target_link_libraries(mkg3states tiff port)
+
+add_custom_target(faxtable
+ DEPENDS mkg3states
+ COMMAND ${CMAKE_COMMAND} -E rm "tif_fax3sm.c"
+ COMMAND mkg3states -b -c const "tif_fax3sm.c"
+ WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}")