summary refs log tree commit diff stats
path: root/CMakeLists.txt
blob: ed3f7e7ca9913a089c32450755a852c84d1a9d64 (plain) (blame)
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
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)
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_INCLUDE_DIRS}
  ${tclap_INCLUDE_DIRS}
)

link_directories(
  ${tesseract_LIBRARY_DIRS}
  ${lept_LIBRARY_DIRS}
  ${GraphicsMagick_LIBRARY_DIRS}
  ${curlcpp_LIBRARY_DIRS}
)

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}
  ${curlcpp_LIBRARIES}
)