fix(build): removed unneeded .pro and fixed CMakeLists.txt

This commit is contained in:
lily 2025-04-15 23:03:51 -04:00
parent 4d5d6356e2
commit daad21467d
Signed by: lily
GPG key ID: 601F3263FBCBC4B9
2 changed files with 5 additions and 17 deletions

View file

@ -12,7 +12,11 @@ find_package(Qt6 REQUIRED COMPONENTS Widgets Gui Core)
qt_add_executable(waydock ${SOURCES} ${UI_SRC}) qt_add_executable(waydock ${SOURCES} ${UI_SRC})
qt_standard_project_setup() 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 set_target_properties(waydock PROPERTIES
AUTOMOC ON AUTOMOC ON
@ -20,10 +24,6 @@ set_target_properties(waydock PROPERTIES
AUTORCC ON AUTORCC ON
) )
if(WIN32)
set_target_properties(waydock PROPERTIES WIN32_EXECUTABLE ON)
endif()
if (MSVC) if (MSVC)
target_compile_options(waydock PRIVATE "-Zc:__cplusplus" "-permissive-") target_compile_options(waydock PRIVATE "-Zc:__cplusplus" "-permissive-")
endif() endif()

View file

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