mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
start qt launcher work
This commit is contained in:
parent
83ef260941
commit
06d3bb2a34
2 changed files with 45 additions and 0 deletions
38
launchers/qt/CMakeLists.txt
Normal file
38
launchers/qt/CMakeLists.txt
Normal file
|
@ -0,0 +1,38 @@
|
|||
cmake_minimum_required(VERSION 3.11)
|
||||
project(HQLauncher)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED_ON)
|
||||
find_package(Qt5 COMPONENTS Core Gui Qml Quick QuickControls2 Network REQUIRED)
|
||||
find_package(OpenGL)
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_AUTORCC ON)
|
||||
#set(CMAKE_AUTOUIC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
||||
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /MT")
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /MTd")
|
||||
|
||||
foreach(plugin ${Qt5Gui_PLUGINS})
|
||||
get_target_property(_loc ${plugin} LOCATION)
|
||||
message("Plugin ${plugin} is at location ${_loc}")
|
||||
set(plugin_libs ${plugin_libs} ${_loc})
|
||||
endforeach()
|
||||
|
||||
set(src_files
|
||||
src/main.cpp)
|
||||
|
||||
add_executable(${PROJECT_NAME} ${src_file})
|
||||
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC
|
||||
Qt5::Core
|
||||
Qt5::Quick
|
||||
Qt5::QuickControls2
|
||||
Qt5::Qml
|
||||
Qt5::Gui
|
||||
${OPENGL_LIBRARIES}
|
||||
${plugin_libs})
|
||||
|
||||
target_include_directories(${PROJECT_NAME} PUBLIC
|
||||
${Qt5Core_INCLUDE_DIRS}
|
||||
${Qt5Quick_INCLUDE_DIRS}
|
||||
${Qt5Gui_INCLUDE_DIRS}
|
||||
${Qt5Qml_INCLUDE_DIRS})
|
7
launchers/qt/src/main.cpp
Normal file
7
launchers/qt/src/main.cpp
Normal file
|
@ -0,0 +1,7 @@
|
|||
//main.cpp
|
||||
//#include <iostream>
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
//std::cout << "Hello World \n";
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue