From 1b80d7f93a06c243534b50b6b57e5dd94f2489c7 Mon Sep 17 00:00:00 2001 From: Dan Rosser Date: Fri, 28 Jul 2023 00:39:20 +1000 Subject: [PATCH] CMake Support Tess2 --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..f6ab887 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,15 @@ +cmake_minimum_required(VERSION 2.8) +project(tess2) +file(GLOB SRCS "Source/*.cpp" "Source/*.c") +file(GLOB SRCS_INCL "Source/*.h" "Source/*.hpp") +include_directories("Include") +add_library(tess2 STATIC ${SRCS} ${SRCS_INCL}) + +# Specify where the library should be installed +install(TARGETS tess2 + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib + RUNTIME DESTINATION bin) + +# Specify where the header files should be installed +install(FILES ${SRCS_INCL} DESTINATION include)