52 |
52 |
53 if (USE_QT5) |
53 if (USE_QT5) |
54 qt5_generate_moc (ZCINEMA_MOC ${ZCINEMA_HEADERS}) |
54 qt5_generate_moc (ZCINEMA_MOC ${ZCINEMA_HEADERS}) |
55 qt5_add_resources (ZCINEMA_QRC ${ZCINEMA_RESOURCES}) |
55 qt5_add_resources (ZCINEMA_QRC ${ZCINEMA_RESOURCES}) |
56 qt5_wrap_ui (ZCINEMA_FORMS_HEADERS ${ZCINEMA_FORMS}) |
56 qt5_wrap_ui (ZCINEMA_FORMS_HEADERS ${ZCINEMA_FORMS}) |
57 add_executable (${PROJECT_NAME} WIN32 ${ZCINEMA_SOURCES} ${ZCINEMA_MOC} |
57 add_executable (${PROJECT_NAME} WIN32 ${ZCINEMA_SOURCES} ${ZCINEMA_HEADERS} ${ZCINEMA_MOC} |
58 ${ZCINEMA_QRC} ${ZCINEMA_FORMS_HEADERS}) |
58 ${ZCINEMA_QRC} ${ZCINEMA_FORMS_HEADERS}) |
59 else() |
59 else() |
60 qt4_wrap_cpp (ZCINEMA_MOC ${ZCINEMA_HEADERS}) |
60 qt4_wrap_cpp (ZCINEMA_MOC ${ZCINEMA_HEADERS}) |
61 qt4_wrap_ui (ZCINEMA_FORMS_HEADERS ${ZCINEMA_FORMS}) |
61 qt4_wrap_ui (ZCINEMA_FORMS_HEADERS ${ZCINEMA_FORMS}) |
62 qt4_add_resources (ZCINEMA_RCC ${ZCINEMA_RESOURCES}) |
62 qt4_add_resources (ZCINEMA_RCC ${ZCINEMA_RESOURCES}) |
63 add_executable (${PROJECT_NAME} WIN32 ${ZCINEMA_SOURCES} ${ZCINEMA_RCC} |
63 add_executable (${PROJECT_NAME} WIN32 ${ZCINEMA_SOURCES} ${ZCINEMA_HEADERS} ${ZCINEMA_RCC} |
64 ${ZCINEMA_FORMS_HEADERS} ${ZCINEMA_MOC}) |
64 ${ZCINEMA_FORMS_HEADERS} ${ZCINEMA_MOC}) |
65 endif() |
65 endif() |
66 |
66 |
67 if (USE_QT5) |
67 if (USE_QT5) |
68 target_link_libraries (${PROJECT_NAME} Qt5::Widgets Qt5::Network Qt5::OpenGL ${OPENGL_LIBRARIES}) |
68 target_link_libraries (${PROJECT_NAME} Qt5::Widgets Qt5::Network Qt5::OpenGL ${OPENGL_LIBRARIES}) |