fix warning
[kdegraphics.git] / gwenview / CMakeLists.txt
blob9dba9fea844f4ca9c00cb0cb2a8b866088ed0f9b
1 project(gwenview)
3 set(GWENVIEW_SEMANTICINFO_BACKEND_NONE OFF)
4 set(GWENVIEW_SEMANTICINFO_BACKEND_FAKE OFF)
5 set(GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK OFF)
7 set(GWENVIEW_SEMANTICINFO_BACKEND "None" CACHE STRING "Metadata backend for Gwenview (None/Fake/Nepomuk)")
9 # Init GWENVIEW_SEMANTICINFO_BACKEND_* vars
10 if (GWENVIEW_SEMANTICINFO_BACKEND STREQUAL "None")
11         set(GWENVIEW_SEMANTICINFO_BACKEND_NONE ON)
12 else (GWENVIEW_SEMANTICINFO_BACKEND STREQUAL "None")
13         if (GWENVIEW_SEMANTICINFO_BACKEND STREQUAL "Fake")
14                 set(GWENVIEW_SEMANTICINFO_BACKEND_FAKE ON)
15         else (GWENVIEW_SEMANTICINFO_BACKEND STREQUAL "Fake")
16                 set(GWENVIEW_SEMANTICINFO_BACKEND_NEPOMUK ON)
17         endif (GWENVIEW_SEMANTICINFO_BACKEND STREQUAL "Fake")
18 endif (GWENVIEW_SEMANTICINFO_BACKEND STREQUAL "None")
20 if (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
21         # We need Nepomuk widgets in all cases
22         find_package(Nepomuk REQUIRED)
23 endif (NOT GWENVIEW_SEMANTICINFO_BACKEND_NONE)
25 # TODO: Move other Gwenview specific macro_optional_find_package lines here
27 subdirs(app)
28 subdirs(lib)
29 subdirs(part)
30 subdirs(tests)
31 subdirs(icons)
32 subdirs(cursors)
33 subdirs(fullscreenthemes)
35 configure_file(config-gwenview.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config-gwenview.h)