summary refs log tree commit diff stats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c72ef4..cc3fccd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -1,18 +1,21 @@
1cmake_minimum_required (VERSION 3.1) 1cmake_minimum_required (VERSION 3.1)
2project (infinite) 2project (infinite)
3 3
4set(CMAKE_BUILD_TYPE Debug)
5
6add_subdirectory(vendor/libtwittercpp) 4add_subdirectory(vendor/libtwittercpp)
7add_subdirectory(vendor/verbly) 5add_subdirectory(vendor/verbly)
8add_subdirectory(vendor/yaml-cpp EXCLUDE_FROM_ALL)
9 6
10find_package(PkgConfig) 7find_package(PkgConfig)
11pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED) 8pkg_check_modules(GraphicsMagick GraphicsMagick++ REQUIRED)
9pkg_check_modules(yaml-cpp yaml-cpp REQUIRED)
10
11include_directories(
12 ${GraphicsMagick_INCLUDE_DIRS}
13 vendor/verbly/lib
14 vendor/libtwittercpp/src
15 ${yaml-cpp_INCLUDE_DIRS})
12 16
13include_directories(${GraphicsMagick_INCLUDE_DIRS} vendor/verbly/lib vendor/libtwittercpp/src vendor/yaml-cpp/include)
14link_directories(${GraphicsMagick_LIBRARY_DIRS}) 17link_directories(${GraphicsMagick_LIBRARY_DIRS})
15add_executable(infinite infinite.cpp color.cpp fractal.cpp matrix3x3.cpp vector3d.cpp tinyxml2.cpp triangle.cpp) 18add_executable(infinite infinite.cpp color.cpp fractal.cpp matrix3x3.cpp vector3d.cpp tinyxml2.cpp triangle.cpp)
16set_property(TARGET infinite PROPERTY CXX_STANDARD 11) 19set_property(TARGET infinite PROPERTY CXX_STANDARD 11)
17set_property(TARGET infinite PROPERTY CXX_STANDARD_REQUIRED ON) 20set_property(TARGET infinite PROPERTY CXX_STANDARD_REQUIRED ON)
18target_link_libraries(infinite ${GraphicsMagick_LIBRARIES} verbly yaml-cpp twitter++) 21target_link_libraries(infinite ${GraphicsMagick_LIBRARIES} verbly ${yaml-cpp_LIBRARIES} twitter++)