1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

CMake: add all launcher headers to CMakeLists.txt

This commit is contained in:
Arseniy Shestakov 2017-07-13 02:44:58 +03:00
parent dbcd79c48a
commit 99d3b9e37a

View File

@ -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)