-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3ad205
commit 9dedab1
Showing
85 changed files
with
682 additions
and
666 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Solution | ||
project(Collections) | ||
|
||
# Projects | ||
add_subdirectory(List) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
project(List) | ||
find_package(Qt6Core CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Core CONFIG REQUIRED) | ||
endif() | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
find_package(Qt6 REQUIRED COMPONENTS Core) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core) | ||
endif () | ||
|
||
add_executable(${PROJECT_NAME} src/List.cpp) | ||
target_link_libraries(${PROJECT_NAME} Qt::Core) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Core/Collections") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Solution | ||
project(Console) | ||
|
||
# Projects | ||
add_subdirectory(Console) | ||
add_subdirectory(ConsoleColor) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
project(Console) | ||
find_package(Qt6Widgets CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Widgets CONFIG REQUIRED) | ||
endif() | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core Widgets) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
endif () | ||
|
||
add_executable(${PROJECT_NAME} src/Console.cpp) | ||
target_link_libraries(${PROJECT_NAME} Qt::Core) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Core/Console") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Project | ||
project(ConsoleColor) | ||
find_package(Qt6Core CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Core CONFIG REQUIRED) | ||
endif() | ||
|
||
# Options | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
# Application | ||
find_package(Qt6 REQUIRED COMPONENTS Core) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
endif () | ||
|
||
add_executable(ConsoleColor src/ConsoleColor.cpp) | ||
target_link_libraries(ConsoleColor Qt::Core) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Core/Console") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Solution | ||
project(HelloWorlds) | ||
|
||
# Projects | ||
add_subdirectory(HelloWorldConsole) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
project(HelloWorldConsole) | ||
find_package(Qt6Core CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Core CONFIG REQUIRED) | ||
endif() | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
find_package(Qt6 REQUIRED COMPONENTS Core) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
endif () | ||
|
||
add_executable(${PROJECT_NAME} src/HelloWorldConsole.cpp) | ||
target_link_libraries(${PROJECT_NAME} Qt::Core) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Core/HelloWorlds") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Solution | ||
project(Strings) | ||
|
||
# Projects | ||
add_subdirectory(StringSplit) | ||
add_subdirectory(StringUnicode) | ||
add_subdirectory(StringUnicode2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
project(StringSplit) | ||
find_package(Qt6Core CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Core CONFIG REQUIRED) | ||
endif() | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
find_package(Qt6 REQUIRED COMPONENTS Core) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
endif () | ||
|
||
add_executable(${PROJECT_NAME} src/StringSplit.cpp) | ||
target_link_libraries(${PROJECT_NAME} Qt::Core) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Core/Strings") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
project(StringUnicode) | ||
find_package(Qt6Core CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Core CONFIG REQUIRED) | ||
endif() | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
find_package(Qt6 REQUIRED COMPONENTS Core) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
endif () | ||
|
||
add_executable(${PROJECT_NAME} src/StringUnicode.cpp) | ||
target_link_libraries(${PROJECT_NAME} Qt::Core) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Core/Strings") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
project(StringUnicode2) | ||
find_package(Qt6Core CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Core CONFIG REQUIRED) | ||
endif() | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
find_package(Qt6 REQUIRED COMPONENTS Core) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
endif () | ||
|
||
add_executable(${PROJECT_NAME} src/StringUnicode2.cpp) | ||
target_link_libraries(${PROJECT_NAME} Qt::Core) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Core/Strings") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Solution | ||
project(Tests) | ||
|
||
# Projects | ||
add_subdirectory(TestConsole) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Project | ||
project(TestConsole) | ||
find_package(Qt6Core CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Core CONFIG REQUIRED) | ||
endif() | ||
|
||
# Options | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
# Application | ||
find_package(Qt6 REQUIRED COMPONENTS Core) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
endif () | ||
|
||
add_executable(TestConsole src/main.cpp) | ||
target_link_libraries(TestConsole Qt::Core) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Core/tests") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Solution | ||
project(Qt.Test) | ||
|
||
# Projects | ||
add_subdirectory(HelloWorldsUnitTest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Solution | ||
project(HelloWorldsUnitTest) | ||
|
||
# Projects | ||
add_subdirectory(HelloWorldUnitTest) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Project | ||
project(Application) | ||
find_package(Qt6Widgets CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Widgets CONFIG REQUIRED) | ||
endif() | ||
|
||
# Options | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
# Application | ||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core Widgets) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
endif () | ||
|
||
add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE src/Application.cpp) | ||
target_link_libraries(${PROJECT_NAME} Qt::Widgets) | ||
target_link_libraries(${PROJECT_NAME} Qt::Core Qt::Widgets) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Widgets/Applications") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# Application | ||
|
||
Shows how to create an application with QApplication. | ||
|
||
|
22 changes: 11 additions & 11 deletions
22
Qt.Widgets/Applications/ApplicationAndException/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Project | ||
project(ApplicationAndException) | ||
find_package(Qt6Widgets CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Widgets CONFIG REQUIRED) | ||
endif() | ||
|
||
# Options | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
# Application | ||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core Widgets) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
endif () | ||
|
||
add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE src/ApplicationAndException.cpp src/ApplicationAndException.h) | ||
target_link_libraries(${PROJECT_NAME} Qt::Widgets) | ||
target_link_libraries(${PROJECT_NAME} Qt::Core Qt::Widgets) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Widgets/Applications") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Solution | ||
project(Applications) | ||
|
||
# Application and messages | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.20) | ||
|
||
# Project | ||
project(DarkMode) | ||
find_package(Qt6Widgets CONFIG REQUIRED) | ||
if (NOT Qt6_FOUND) | ||
find_package(Qt5Widgets CONFIG REQUIRED) | ||
endif() | ||
|
||
# Options | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
# Application | ||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets) | ||
if (Qt6_FOUND) | ||
qt_standard_project_setup() | ||
else () | ||
find_package(Qt5 REQUIRED COMPONENTS Core Widgets) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
set(CMAKE_AUTOUIC ON) | ||
endif () | ||
|
||
add_executable(DarkMode WIN32 MACOSX_BUNDLE src/DarkMode.cpp src/DarkMode.h) | ||
target_link_libraries(DarkMode Qt::Widgets) | ||
set_target_properties(${PROJECT_NAME} PROPERTIES FOLDER "Qt.Widgets/Applications") |
Oops, something went wrong.