fix(build): removed unneeded .pro
and fixed CMakeLists.txt
This commit is contained in:
parent
4d5d6356e2
commit
daad21467d
2 changed files with 5 additions and 17 deletions
|
@ -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()
|
||||||
|
|
12
waydock.pro
12
waydock.pro
|
@ -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
|
|
Loading…
Add table
Add a link
Reference in a new issue