CMake - Create folders for GUI files in Visual Studio IDE.
This commit is contained in:
parent
0eb07a409d
commit
786c8b558c
|
@ -119,10 +119,15 @@ QT4_WRAP_CPP(CHECK_MOC_SRCS ${CHECK_HEADERS})
|
||||||
# add translations ...
|
# add translations ...
|
||||||
QT4_ADD_TRANSLATION(CHECK_QM ${CHECK_TRANS})
|
QT4_ADD_TRANSLATION(CHECK_QM ${CHECK_TRANS})
|
||||||
|
|
||||||
|
# Create folders for Visual Studio IDE
|
||||||
|
SOURCE_GROUP("Header Files" FILES ${CHECK_HEADERS})
|
||||||
|
SOURCE_GROUP("Ui Files" ".ui$")
|
||||||
|
SOURCE_GROUP("Moc Files" "moc_.*cxx$")
|
||||||
|
|
||||||
# Include binary directory where code from UI files gets created
|
# Include binary directory where code from UI files gets created
|
||||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||||
|
|
||||||
ADD_EXECUTABLE(gui WIN32 ${CHECKGUI_SRCS} ${CHECK_MOC_SRCS} ${CHECK_UIS_H}
|
ADD_EXECUTABLE(gui WIN32 ${CHECKGUI_SRCS} ${CHECK_MOC_SRCS} ${CHECK_HEADERS}
|
||||||
${CHECK_RCC_SRCS} ${CHECK_QM})
|
${CHECK_UIS_H} ${CHECK_RCC_SRCS})
|
||||||
TARGET_LINK_LIBRARIES(gui ${CHECK_LIBS} ${QT_LIBRARIES})
|
TARGET_LINK_LIBRARIES(gui ${CHECK_LIBS} ${QT_LIBRARIES})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue