add: base project
This commit is contained in:
commit
f0cb465c85
14 changed files with 1571 additions and 0 deletions
35
CMakeLists.txt
Normal file
35
CMakeLists.txt
Normal file
|
@ -0,0 +1,35 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(waydock CXX)
|
||||
include_directories(inc)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
|
||||
file(GLOB_RECURSE SOURCES src/*.cpp)
|
||||
file(GLOB_RECURSE UI_SRC ui/*.ui)
|
||||
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)
|
||||
|
||||
set_target_properties(waydock PROPERTIES
|
||||
AUTOMOC ON
|
||||
AUTOUIC ON
|
||||
AUTORCC ON
|
||||
)
|
||||
|
||||
if(WIN32)
|
||||
set_target_properties(waydock PROPERTIES WIN32_EXECUTABLE ON)
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
target_compile_options(waydock PRIVATE "-Zc:__cplusplus" "-permissive-")
|
||||
endif()
|
||||
|
||||
if (CMAKE_BUILD_TYPE MATCHES "^[Dd]ebug")
|
||||
message(STATUS "Debug mode enabled")
|
||||
# target_compile_options(waydock PRIVATE -fsanitize=address -fno-omit-frame-pointer)
|
||||
# target_link_options(waydock PRIVATE -fsanitize=address)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue