This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix moc warning

  • Loading branch information...
amoskvin committed Jan 25, 2013
1 parent 4be30d4 commit 2366d793afa9faf68f09c06f52e51b3dde9281a5
Showing with 17 additions and 5 deletions.
  1. +17 −5 razorqt-session/razor-config-session/CMakeLists.txt
@@ -1,8 +1,8 @@
project(razor-config-session)
include_directories (
- ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
- ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR}
+ ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}
+ ${QT_QTCORE_INCLUDE_DIR} ${QT_QTGUI_INCLUDE_DIR}
${QT_QTDBUS_INCLUDE_DIR} ${QT_QTXML_INCLUDE_DIR}
${X11_INCLUDE_DIR} ${CMAKE_SOURCE_DIR}/libraries/)
@@ -18,6 +18,17 @@ set( razor-sessioncfg_HDRS
environmentpage.h
)
+set( razor-sessioncfg_MOCS
+ sessionconfigwindow.h
+ basicsettings.h
+ modulemodel.h
+ autostartpage.h
+ autostartmodel.h
+ autostartedit.h
+ defaultappspage.h
+ environmentpage.h
+)
+
set( razor-sessioncfg_SRCS
main.cpp
sessionconfigwindow.cpp
@@ -31,6 +42,7 @@ set( razor-sessioncfg_SRCS
environmentpage.cpp
../razor-session/src/windowmanager.cpp
)
+
set(razor-sessioncfg_UI_FILES
basicsettings.ui
autostartpage.ui
@@ -40,7 +52,7 @@ set(razor-sessioncfg_UI_FILES
)
QT4_WRAP_UI(razor-sessioncfg_UIS ${razor-sessioncfg_UI_FILES})
-QT4_WRAP_CPP(razor-sessioncfg_MOCS ${razor-sessioncfg_HDRS})
+QT4_WRAP_CPP(razor-sessioncfg_MOC_SOURCES ${razor-sessioncfg_MOCS})
# Translations **********************************
include(RazorTranslate)
razor_translate_ts(razor-sessioncfg_QM_FILES
@@ -56,9 +68,9 @@ razor_translate_desktop(razor-sessioncfg_DESKTOP_FILES
)
#************************************************
-add_executable ( razor-config-session ${razor-sessioncfg_SRCS} ${razor-sessioncfg_UIS} ${razor-sessioncfg_MOCS} ${razor-sessioncfg_DESKTOP_FILES} ${razor-sessioncfg_QM_FILES})
+add_executable ( razor-config-session ${razor-sessioncfg_SRCS} ${razor-sessioncfg_UIS} ${razor-sessioncfg_MOC_SOURCES} ${razor-sessioncfg_DESKTOP_FILES} ${razor-sessioncfg_QM_FILES})
add_dependencies( razor-config-session razorqt qtxdg)
-target_link_libraries ( razor-config-session ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTXML_LIBRARY} ${X11_X11_LIB} razorqt qtxdg)
+target_link_libraries( razor-config-session ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTDBUS_LIBRARY} razorqt qtxdg)
INSTALL(TARGETS razor-config-session RUNTIME DESTINATION bin)
install(FILES ${razor-sessioncfg_DESKTOP_FILES} DESTINATION ${CMAKE_INSTALL_PREFIX}/share/applications)

0 comments on commit 2366d79

Please sign in to comment.