diff options
author | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-04-10 09:40:11 +0200 |
---|---|---|
committer | Matthias Vogelgesang <matthias.vogelgesang@gmail.com> | 2013-04-10 09:40:11 +0200 |
commit | 09a91707c8b2910c1b31c6bf6d47ac2ef5dd4b89 (patch) | |
tree | 8c99191075d287924db2f03a155acedae2cd5dd5 /tools/CMakeLists.txt | |
parent | b45623f31053ac55b1f966ee1d5d4c22cd5db24e (diff) | |
download | libuca-09a91707c8b2910c1b31c6bf6d47ac2ef5dd4b89.tar.gz libuca-09a91707c8b2910c1b31c6bf6d47ac2ef5dd4b89.tar.bz2 libuca-09a91707c8b2910c1b31c6bf6d47ac2ef5dd4b89.tar.xz libuca-09a91707c8b2910c1b31c6bf6d47ac2ef5dd4b89.zip |
Split gui and tools and add preliminary TIFF write
Diffstat (limited to 'tools/CMakeLists.txt')
-rw-r--r-- | tools/CMakeLists.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 66cbd6b..a57fbac 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -4,6 +4,7 @@ add_definitions("--std=c99 -Wall") # --- Find packages and libraries --------------------------------------------- find_package(PkgConfig) +find_package(TIFF) pkg_check_modules(GLIB2 glib-2.0>=2.24 REQUIRED) pkg_check_modules(GOBJECT2 gobject-2.0>=2.24 REQUIRED) @@ -12,12 +13,22 @@ pkg_check_modules(GOBJECT2 gobject-2.0>=2.24 REQUIRED) include_directories( ${GLIB2_INCLUDE_DIRS} ${GOBJECT2_INCLUDE_DIRS} - ${CMAKE_CURRENT_BINARY_DIR}/../src/ + ${CMAKE_CURRENT_BINARY_DIR} + ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../src ) set(libs uca ${GLIB2_LIBRARIES} ${GOBJECT2_LIBRARIES}) +if (TIFF_FOUND) + set(HAVE_LIBTIFF "1") + list(APPEND libs ${TIFF_LIBRARIES}) + include_directories(${TIFF_INCLUDE_DIRS}) +endif () + +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in + ${CMAKE_CURRENT_BINARY_DIR}/config.h) + add_executable(gen-doc gen-doc.c) target_link_libraries(gen-doc ${libs}) @@ -32,5 +43,3 @@ target_link_libraries(benchmark ${libs}) add_executable(perf perf-overhead.c) target_link_libraries(perf ${libs}) - -add_subdirectory(gui) |