diff --git a/launcher/CMakeLists.txt b/launcher/CMakeLists.txt index cf6de45f7..eb5805662 100644 --- a/launcher/CMakeLists.txt +++ b/launcher/CMakeLists.txt @@ -14,10 +14,23 @@ set(launcher_modmanager_SRCS modManager/imageviewer_moc.cpp ) +set(launcher_modmanager_HEADERS + modManager/cdownloadmanager_moc.h + modManager/cmodlist.h + modManager/cmodlistmodel_moc.h + modManager/cmodlistview_moc.h + modManager/cmodmanager.h + modManager/imageviewer_moc.h +) + set(launcher_settingsview_SRCS settingsView/csettingsview_moc.cpp ) +set(launcher_settingsview_HEADERS + settingsView/csettingsview_moc.h +) + set(launcher_SRCS StdInc.cpp ${launcher_modmanager_SRCS} @@ -29,6 +42,16 @@ set(launcher_SRCS sdldisplayquery.cpp ) +set(launcher_HEADERS + StdInc.h + ${launcher_modmanager_HEADERS} + ${launcher_settingsview_HEADERS} + mainwindow_moc.h + launcherdirs.h + jsonutils.h + sdldisplayquery.h +) + set(launcher_FORMS modManager/cmodlistview_moc.ui modManager/imageviewer_moc.ui @@ -54,10 +77,10 @@ set(CMAKE_CXX_FLAGS "${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS} ${CMAKE_CXX_FLAGS}") qt5_wrap_ui(launcher_UI_HEADERS ${launcher_FORMS}) if(WIN32) - add_executable(vcmilauncher WIN32 ${launcher_SRCS} ${launcher_UI_HEADERS} VCMI_launcher.rc) + add_executable(vcmilauncher WIN32 ${launcher_SRCS} ${launcher_HEADERS} ${launcher_UI_HEADERS} VCMI_launcher.rc) set_target_properties(vcmilauncher PROPERTIES OUTPUT_NAME VCMI_launcher) else() - add_executable(vcmilauncher ${launcher_SRCS} ${launcher_UI_HEADERS}) + add_executable(vcmilauncher ${launcher_SRCS} ${launcher_HEADERS} ${launcher_UI_HEADERS}) endif() if(MSVC)