Skip to content
Snippets Groups Projects
Commit 323277f7 authored by Emmanuel Lepage Vallee's avatar Emmanuel Lepage Vallee
Browse files

[ #59491 ] Use automoc instead of QT_WRAP_CPP

parent 16f4df41
Branches
No related tags found
No related merge requests found
...@@ -16,6 +16,8 @@ ADD_DEFINITIONS( ...@@ -16,6 +16,8 @@ ADD_DEFINITIONS(
PROJECT(qtsflphone) PROJECT(qtsflphone)
SET(CMAKE_AUTOMOC TRUE)
#target_link_libraries(qtsflphone ${QT_QTCORE_LIBRARY} ${KDE4_KDEUI_LIBS}) #target_link_libraries(qtsflphone ${QT_QTCORE_LIBRARY} ${KDE4_KDEUI_LIBS})
SET(LOCAL_CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/") SET(LOCAL_CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")
...@@ -296,13 +298,6 @@ ELSE() ...@@ -296,13 +298,6 @@ ELSE()
) )
ENDIF(${ENABLE_QT5} MATCHES true) ENDIF(${ENABLE_QT5} MATCHES true)
# ADD_DEFINITIONS("-w")
IF(${ENABLE_QT5} MATCHES true)
QT5_WRAP_CPP(LIB_HEADER_MOC ${qtsflphone_LIB_HDRS})
ELSE()
QT4_WRAP_CPP(LIB_HEADER_MOC ${qtsflphone_LIB_HDRS})
ENDIF(${ENABLE_QT5} MATCHES true)
add_library( qtsflphone SHARED ${qtsflphone_LIB_SRCS} ${LIB_HEADER_MOC} ) add_library( qtsflphone SHARED ${qtsflphone_LIB_SRCS} ${LIB_HEADER_MOC} )
# REMOVE_DEFINITIONS("-w") # REMOVE_DEFINITIONS("-w")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment