1 # This file is part of LyX, the document processor.
2 # Licence details can be found in the file COPYING.
4 # Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
9 configure_file(${TOP_SRC_DIR}/src/support/package.C.in
10 ${CMAKE_CURRENT_BINARY_DIR}/package.C)
12 file(GLOB support_sources ${TOP_SRC_DIR}/src/support/*.C)
13 file(GLOB support_headers ${TOP_SRC_DIR}/src/support/*.h)
15 list(REMOVE_ITEM support_sources
16 ${TOP_SRC_DIR}/src/support/os_win32.C
17 ${TOP_SRC_DIR}/src/support/os_unix.C
18 ${TOP_SRC_DIR}/src/support/os_cygwin.C
19 ${TOP_SRC_DIR}/src/support/os_os2.C
20 ${TOP_SRC_DIR}/src/support/atexit.c
21 ${TOP_SRC_DIR}/src/support/strerror.c)
23 lyx_add_msvc_pch(support_sources)
25 set(support_sources ${support_sources} ${CMAKE_CURRENT_BINARY_DIR}/package.C)
27 include_directories(${TOP_SRC_DIR}/src/support ${ICONV_INCLUDE_DIR})
29 add_library(support STATIC ${support_sources} ${support_headers})
31 target_link_libraries(support boost_signals)
33 add_dependencies(support ${pchlibname})
36 target_link_libraries(support shlwapi)
39 project_source_group("${GROUP_CODE}" support_sources support_headers)