mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +00:00
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:
parent
8b56472233
commit
3665dc404e
@ -6,7 +6,7 @@
|
||||
|
||||
project(boost)
|
||||
|
||||
add_subdirectory(filesystem)
|
||||
#add_subdirectory(filesystem)
|
||||
#add_subdirectory(iostreams)
|
||||
add_subdirectory(regex)
|
||||
add_subdirectory(signals)
|
||||
|
@ -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})
|
||||
|
@ -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)
|
||||
|
@ -25,6 +25,8 @@ list(REMOVE_ITEM support_sources
|
||||
|
||||
lyx_add_msvc_pch(support)
|
||||
|
||||
lyx_automoc(${support_sources})
|
||||
|
||||
include_directories(${TOP_SRC_DIR}/src/support
|
||||
${TOP_SRC_DIR}/src/support/minizip
|
||||
${QT_INCLUDES}
|
||||
@ -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)
|
||||
|
@ -56,7 +56,6 @@ endif()
|
||||
|
||||
target_link_libraries(tex2lyx
|
||||
support
|
||||
boost_filesystem
|
||||
boost_regex
|
||||
${QT_QTCORE_LIBRARY}
|
||||
intl)
|
||||
|
Loading…
Reference in New Issue
Block a user