]> git.lyx.org Git - lyx.git/blob - src/graphics/CMakeLists.txt
cmake: move CMakeLists.txt into source dir (multiple steps)
[lyx.git] / src / graphics / CMakeLists.txt
1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
3 #
4 # Copyright (c) 2006-2011 Peter Kümmel, <syntheticpp@gmx.net>
5 #
6
7 project(graphics)
8
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})
11
12 lyx_add_msvc_pch(graphics)
13
14
15 include_directories(${TOP_SRC_DIR}/src/graphics)
16
17 if(NOT LYX_MERGE_FILES)
18         add_library(graphics ${library_type} ${graphics_sources} ${graphics_headers})
19 else()
20         lyx_const_touched_files(_allinone  graphics_sources)
21         add_library(graphics ${library_type} ${_allinone_files})
22 endif()
23
24 lyx_add_gcc_pch(graphics)
25
26 project_source_group("${GROUP_CODE}" graphics_sources graphics_headers)
27