mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
31 lines
968 B
CMake
31 lines
968 B
CMake
# This file is part of LyX, the document processor.
|
|
# Licence details can be found in the file COPYING.
|
|
#
|
|
# Copyright (c) 2006-2011 Peter Kümmel, <syntheticpp@gmx.net>
|
|
#
|
|
|
|
project(graphics)
|
|
|
|
file(GLOB graphics_sources ${TOP_SRC_DIR}/src/graphics/${LYX_CPP_FILES})
|
|
file(GLOB graphics_headers ${TOP_SRC_DIR}/src/graphics/${LYX_HPP_FILES})
|
|
|
|
lyx_add_msvc_pch(graphics)
|
|
|
|
include_directories(${TOP_SRC_DIR}/src/graphics)
|
|
lyx_automoc(${TOP_SRC_DIR}/src/graphics/PreviewLoader.cpp)
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${QT_INCLUDES})
|
|
|
|
if(NOT LYX_MERGE_FILES)
|
|
add_library(graphics ${library_type} ${graphics_sources} ${graphics_headers})
|
|
else()
|
|
lyx_const_touched_files(_allinone graphics_sources)
|
|
add_library(graphics ${library_type} ${_allinone_files})
|
|
endif()
|
|
set_target_properties(graphics PROPERTIES FOLDER "applications/LyX")
|
|
qt_use_modules(graphics Core)
|
|
|
|
lyx_add_gcc_pch(graphics)
|
|
|
|
project_source_group("${GROUP_CODE}" graphics_sources graphics_headers)
|
|
|