From 76bc3b3677062c0c1a6b9fa08ff20d12e470159c Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Mon, 4 Nov 2024 02:19:09 -0500 Subject: Some old refactoring + some new refactoring --- CMakeLists.txt | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f6380ee..ed3f7e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,25 +1,39 @@ cmake_minimum_required (VERSION 3.1) project (wizard) +set(CMAKE_BUILD_TYPE Debug) + find_package(PkgConfig) pkg_check_modules(tesseract tesseract REQUIRED) +pkg_check_modules(lept lept REQUIRED) pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) - -add_subdirectory(vendor/curlcpp) +pkg_check_modules(tclap tclap REQUIRED) +pkg_check_modules(curlcpp curlcpp REQUIRED) include_directories( vendor/json vendor/hkutil ${tesseract_INCLUDE_DIRS} + ${lept_INCLUDE_DIRS} ${GraphicsMagick_INCLUDE_DIRS} - ${CURLCPP_SOURCE_DIR}/include) + ${curlcpp_INCLUDE_DIRS} + ${tclap_INCLUDE_DIRS} +) + +link_directories( + ${tesseract_LIBRARY_DIRS} + ${lept_LIBRARY_DIRS} + ${GraphicsMagick_LIBRARY_DIRS} + ${curlcpp_LIBRARY_DIRS} +) -add_executable(wizard wizard.cpp) +add_executable(wizard cardset.cpp imagestore.cpp designer.cpp wizard.cpp main.cpp) set_property(TARGET wizard PROPERTY CXX_STANDARD 14) set_property(TARGET wizard PROPERTY CXX_STANDARD_REQUIRED ON) target_link_libraries( wizard ${tesseract_LIBRARIES} + ${lept_LIBRARIES} ${GraphicsMagick_LIBRARIES} - lept - curlcpp) + ${curlcpp_LIBRARIES} +) -- cgit 1.4.1