-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from TomVer99/feature/version-2.0.0
Feature/version 2.0.0
- Loading branch information
Showing
20 changed files
with
282 additions
and
172 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
enhancement: ['feature/*', 'feat/*', 'enhancement/*'] | ||
bug: ['bug/*', 'fix/*', 'fixes/*', 'bugfix/*', 'bugfixes/*'] | ||
documentation: ['docs/*', 'doc/*', 'documentation/*'] |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: PR Labeler | ||
on: | ||
pull_request: | ||
types: [ opened, reopened ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
pr-labeler: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: TimonVS/pr-labeler-action@v4 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
configuration-path: .github/pr-labeler.yml |
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,28 +1,21 @@ | ||
cmake_minimum_required(VERSION ${CMakeMinimumVersion}) | ||
add_executable(${ProjectRunName} main.cpp) | ||
|
||
# Add headers here. If no headers, leave empty. | ||
set(Headers | ||
example.hpp | ||
# All the libs need to be linked here to make them available to the executable | ||
target_link_libraries(${ProjectRunName} PRIVATE | ||
ExampleLib | ||
ExampleNestedTopLib | ||
ExampleNestedBottomLib | ||
) | ||
|
||
# Add sources here. If no sources, leave empty. | ||
set(Sources | ||
example.cpp | ||
) | ||
|
||
# Builds a static library for gtest | ||
add_library(${ProjectName} STATIC ${Sources} ${Headers}) | ||
set(PROJECT_LIB_EXAMPLE_NAME exampleLib) | ||
add_library(${PROJECT_LIB_EXAMPLE_NAME} INTERFACE) | ||
|
||
# Builds an executable to run | ||
add_executable(${ProjectRunName} main.cpp ${Sources} ${Headers}) | ||
# All the libs need to be linked here to make them available to the library | ||
target_link_libraries(${PROJECT_LIB_EXAMPLE_NAME} INTERFACE | ||
ExampleLib | ||
ExampleNestedTopLib | ||
ExampleNestedBottomLib | ||
) | ||
|
||
# Adds a subdirectory to the project | ||
add_subdirectory(Example) | ||
|
||
# Links code to test. Simply add more libraries after the example. | ||
# This is not folder specific. | ||
# target_link_libraries(${ProjectName} ExampleLib ExampleLib2) | ||
target_link_libraries(${ProjectName} ExampleLib) | ||
|
||
# Same as above, but for the executable | ||
target_link_libraries(${ProjectRunName} ExampleLib) | ||
add_subdirectory(NestedDirExample) |
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,14 +1,13 @@ | ||
cmake_minimum_required(VERSION ${CMakeMinimumVersion}) | ||
|
||
# Add headers here | ||
set(Headers | ||
example2.hpp | ||
example.hpp | ||
) | ||
|
||
# Add sources here | ||
set(Sources | ||
example2.cpp | ||
example.cpp | ||
) | ||
|
||
# Makes a library from the sources and headers. First argument is the name of the library (used in src/CMakeLists.txt). | ||
add_library(ExampleLib STATIC ${Sources} ${Headers}) | ||
|
||
target_include_directories(ExampleLib PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
) |
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
set(Headers | ||
nestedTop.hpp | ||
) | ||
|
||
set(Sources | ||
nestedTop.cpp | ||
) | ||
|
||
add_library(ExampleNestedTopLib STATIC ${Sources} ${Headers}) | ||
|
||
target_include_directories(ExampleNestedTopLib PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
|
||
add_subdirectory(NestedDir) |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
set(Headers | ||
nestedBottom.hpp | ||
) | ||
|
||
set(Sources | ||
nestedBottom.cpp | ||
) | ||
|
||
add_library(ExampleNestedBottomLib STATIC ${Sources} ${Headers}) | ||
|
||
target_link_libraries(ExampleNestedBottomLib PRIVATE | ||
ExampleNestedTopLib | ||
) | ||
|
||
target_include_directories(ExampleNestedBottomLib PUBLIC | ||
${CMAKE_CURRENT_SOURCE_DIR} | ||
) |
Oops, something went wrong.