fix(build): removed unneeded .pro
and fixed CMakeLists.txt
This commit is contained in:
parent
f0cb465c85
commit
099dcefec8
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_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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue