1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
4 # Copyright (c) 2006-2011 Peter Kümmel, <syntheticpp@gmx.net>
9 file(GLOB graphics_sources ${TOP_SRC_DIR}/src/graphics/${LYX_CPP_FILES})
10 file(GLOB graphics_headers ${TOP_SRC_DIR}/src/graphics/${LYX_HPP_FILES})
12 lyx_add_msvc_pch(graphics)
14 include_directories(${TOP_SRC_DIR}/src/graphics)
15 lyx_automoc(${TOP_SRC_DIR}/src/graphics/PreviewLoader.cpp)
16 include_directories(${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDES})
18 if(NOT LYX_MERGE_FILES)
19 add_library(graphics ${library_type} ${graphics_sources} ${graphics_headers})
21 lyx_const_touched_files(_allinone graphics_sources)
22 add_library(graphics ${library_type} ${_allinone_files})
24 set_target_properties(graphics PROPERTIES FOLDER "applications/LyX")
25 qt_use_modules(graphics Core)
27 lyx_add_gcc_pch(graphics)
29 project_source_group("${GROUP_CODE}" graphics_sources graphics_headers)