diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ba2b7d..9966ea9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,11 @@ find_package(Qt6 REQUIRED COMPONENTS Widgets Gui Core) qt_add_executable(waydock ${SOURCES} ${UI_SRC}) qt_standard_project_setup() -target_link_libraries(waydock PRIVATE Widget Gui Core) +if(WIN32) + set_target_properties(waydock PROPERTIES WIN32_EXECUTABLE OFF) +endif() + +target_link_libraries(waydock PRIVATE Qt6::Widgets Qt6::Gui Qt6::Core) set_target_properties(waydock PROPERTIES AUTOMOC ON @@ -20,10 +24,6 @@ set_target_properties(waydock PROPERTIES AUTORCC ON ) -if(WIN32) - set_target_properties(waydock PROPERTIES WIN32_EXECUTABLE ON) -endif() - if (MSVC) target_compile_options(waydock PRIVATE "-Zc:__cplusplus" "-permissive-") endif() diff --git a/waydock.pro b/waydock.pro deleted file mode 100644 index cc7ab1a..0000000 --- a/waydock.pro +++ /dev/null @@ -1,12 +0,0 @@ -QT += core gui widgets - -CONFIG += c++17 debug console -TEMPLATE = app -TARGET = waydock - -SOURCES += \ - src/main.cpp \ - src/dock.cpp \ - -# HEADERS += \ -# src/some_header.h \ No newline at end of file