CMakeLists.txt

changeset 42
9528f8d06962
parent 40
809a75a7113b
child 43
1394901b557a
equal deleted inserted replaced
41:e985ebb67fdd 42:9528f8d06962
13 13
14 include_directories (${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR}) 14 include_directories (${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
15 15
16 set (ZCINEMA_SOURCES 16 set (ZCINEMA_SOURCES
17 src/cfg.cpp 17 src/cfg.cpp
18 src/config.cpp 18 src/configwindow.cpp
19 src/demo.cpp 19 src/demo.cpp
20 src/main.cpp 20 src/main.cpp
21 src/misc.cpp 21 src/misc.cpp
22 src/prompts.cpp 22 src/prompts.cpp
23 ) 23 )
24 24
25 set (ZCINEMA_HEADERS 25 set (ZCINEMA_HEADERS
26 src/cfg.h 26 src/cfg.h
27 src/config.h 27 src/configwindow.h
28 src/demo.h 28 src/demo.h
29 src/main.h 29 src/main.h
30 src/misc.h 30 src/misc.h
31 src/prompts.h 31 src/prompts.h
32 src/types.h 32 src/types.h
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})

mercurial