diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f6380ee..ed3f7e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -1,25 +1,39 @@ | |||
1 | cmake_minimum_required (VERSION 3.1) | 1 | cmake_minimum_required (VERSION 3.1) |
2 | project (wizard) | 2 | project (wizard) |
3 | 3 | ||
4 | set(CMAKE_BUILD_TYPE Debug) | ||
5 | |||
4 | find_package(PkgConfig) | 6 | find_package(PkgConfig) |
5 | pkg_check_modules(tesseract tesseract REQUIRED) | 7 | pkg_check_modules(tesseract tesseract REQUIRED) |
8 | pkg_check_modules(lept lept REQUIRED) | ||
6 | pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) | 9 | pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) |
7 | 10 | pkg_check_modules(tclap tclap REQUIRED) | |
8 | add_subdirectory(vendor/curlcpp) | 11 | pkg_check_modules(curlcpp curlcpp REQUIRED) |
9 | 12 | ||
10 | include_directories( | 13 | include_directories( |
11 | vendor/json | 14 | vendor/json |
12 | vendor/hkutil | 15 | vendor/hkutil |
13 | ${tesseract_INCLUDE_DIRS} | 16 | ${tesseract_INCLUDE_DIRS} |
17 | ${lept_INCLUDE_DIRS} | ||
14 | ${GraphicsMagick_INCLUDE_DIRS} | 18 | ${GraphicsMagick_INCLUDE_DIRS} |
15 | ${CURLCPP_SOURCE_DIR}/include) | 19 | ${curlcpp_INCLUDE_DIRS} |
20 | ${tclap_INCLUDE_DIRS} | ||
21 | ) | ||
22 | |||
23 | link_directories( | ||
24 | ${tesseract_LIBRARY_DIRS} | ||
25 | ${lept_LIBRARY_DIRS} | ||
26 | ${GraphicsMagick_LIBRARY_DIRS} | ||
27 | ${curlcpp_LIBRARY_DIRS} | ||
28 | ) | ||
16 | 29 | ||
17 | add_executable(wizard wizard.cpp) | 30 | add_executable(wizard cardset.cpp imagestore.cpp designer.cpp wizard.cpp main.cpp) |
18 | set_property(TARGET wizard PROPERTY CXX_STANDARD 14) | 31 | set_property(TARGET wizard PROPERTY CXX_STANDARD 14) |
19 | set_property(TARGET wizard PROPERTY CXX_STANDARD_REQUIRED ON) | 32 | set_property(TARGET wizard PROPERTY CXX_STANDARD_REQUIRED ON) |
20 | target_link_libraries( | 33 | target_link_libraries( |
21 | wizard | 34 | wizard |
22 | ${tesseract_LIBRARIES} | 35 | ${tesseract_LIBRARIES} |
36 | ${lept_LIBRARIES} | ||
23 | ${GraphicsMagick_LIBRARIES} | 37 | ${GraphicsMagick_LIBRARIES} |
24 | lept | 38 | ${curlcpp_LIBRARIES} |
25 | curlcpp) | 39 | ) |