cmake: remove boost_filesystem, add automoc to support, link against QtCore

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21825 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2007-11-27 19:57:03 +00:00
parent 8b56472233
commit 3665dc404e
5 changed files with 12 additions and 8 deletions

View File

@ -6,7 +6,7 @@
project(boost)
add_subdirectory(filesystem)
#add_subdirectory(filesystem)
#add_subdirectory(iostreams)
add_subdirectory(regex)
add_subdirectory(signals)

View File

@ -58,8 +58,7 @@ target_link_libraries(lyx
graphics
support
intl
${QT_QTMAIN_LIBRARY}
boost_filesystem)
${QT_QTMAIN_LIBRARY})
if(ASPELL_FOUND)
target_link_libraries(lyx ${ASPELL_LIBRARY})

View File

@ -50,8 +50,7 @@ endif()
target_link_libraries(frontend_qt4
frontends
${QT_QTCORE_LIBRARY}
${QT_QTGUI_LIBRARY}
boost_filesystem)
${QT_QTGUI_LIBRARY})
if(WIN32)
target_link_libraries(frontend_qt4 Gdi32)

View File

@ -24,6 +24,8 @@ list(REMOVE_ITEM support_sources
${TOP_SRC_DIR}/src/support/minizip/iowin32.c)
lyx_add_msvc_pch(support)
lyx_automoc(${support_sources})
include_directories(${TOP_SRC_DIR}/src/support
${TOP_SRC_DIR}/src/support/minizip
@ -37,12 +39,17 @@ if(NOT MERGE_FILES)
add_library(support ${library_type} ${support_sources} ${support_headers})
else()
lyx_const_touched_files(_allinone support_sources)
set(depends_moc ${support_headers})
set_source_files_properties(_allinone_const.C
PROPERTIES OBJECT_DEPENDS "${depends_moc}")
set_source_files_properties(_allinone_touched.C
PROPERTIES OBJECT_DEPENDS "${depends_moc}")
add_library(support ${library_type} ${_allinone_files}
${support_minizip_sources} ${support_minizip_cpp_sources})
${support_minizip_sources} ${support_minizip_cpp_sources} ${support_headers})
endif()
target_link_libraries(support boost_signals)
target_link_libraries(support boost_signals ${QT_QTCORE_LIBRARY} )
if(WIN32)
target_link_libraries(support shlwapi)

View File

@ -56,7 +56,6 @@ endif()
target_link_libraries(tex2lyx
support
boost_filesystem
boost_regex
${QT_QTCORE_LIBRARY}
intl)