2010-08-10 22:41:39 -06:00
|
|
|
include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
set ( dfoffsetedit_SRCS
|
|
|
|
dfedit.cpp
|
2010-08-11 00:08:08 -06:00
|
|
|
memxmlModel.cpp
|
2010-08-10 22:41:39 -06:00
|
|
|
main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
SET ( dfoffsetedit_UI
|
|
|
|
gui/main.ui
|
|
|
|
)
|
|
|
|
|
|
|
|
SET( dfoffsetedit_RCS
|
|
|
|
gui/resources.qrc
|
|
|
|
)
|
|
|
|
|
|
|
|
# this command will generate rules that will run rcc on all files from dfoffsetedit_RCS
|
|
|
|
# in result dfoffsetedit_RC_SRCS variable will contain paths to files produced by rcc
|
|
|
|
QT4_ADD_RESOURCES( dfoffsetedit_RC_SRCS ${dfoffsetedit_RCS} )
|
|
|
|
|
|
|
|
QT4_WRAP_UI(dfoffsetedit_SRCS ${dfedit_UI})
|
|
|
|
qt4_automoc(${dfoffsetedit_SRCS})
|
|
|
|
|
|
|
|
#ADD_EXECUTABLE( sample ${SAMPLE_SRCS} ${SAMPLE_MOC_SRCS} ${SAMPLE_RC_SRCS} ${SAMPLE_UI_HDRS})
|
|
|
|
|
|
|
|
add_executable(dfoffsetedit ${dfoffsetedit_SRCS} ${dfoffsetedit_RC_SRCS})
|
2010-08-11 00:08:08 -06:00
|
|
|
target_link_libraries(dfoffsetedit ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY} )
|