Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LoadStaticSharedTargets
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CMake
LoadStaticSharedTargets
Commits
abf099a7
Unverified
Commit
abf099a7
authored
1 year ago
by
Tim Kaune
Browse files
Options
Downloads
Patches
Plain Diff
Add custom check target to build and run the tests
parent
8cbcf5e1
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/build-and-test.yml
+1
-1
1 addition, 1 deletion
.github/workflows/build-and-test.yml
CMakeLists.txt
+3
-1
3 additions, 1 deletion
CMakeLists.txt
with
4 additions
and
2 deletions
.github/workflows/build-and-test.yml
+
1
−
1
View file @
abf099a7
...
@@ -21,4 +21,4 @@ jobs:
...
@@ -21,4 +21,4 @@ jobs:
-
name
:
install
-
name
:
install
run
:
cmake --build --preset ninja --verbose --target install
run
:
cmake --build --preset ninja --verbose --target install
-
name
:
test
-
name
:
test
run
:
cmake --build --preset ninja --verbose --target
test
run
:
cmake --build --preset ninja --verbose --target
check
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
3
−
1
View file @
abf099a7
...
@@ -54,7 +54,9 @@ endif ()
...
@@ -54,7 +54,9 @@ endif ()
add_subdirectory
(
src
)
add_subdirectory
(
src
)
if
(
IS_TOP_LEVEL AND BUILD_TESTING
)
if
(
IS_TOP_LEVEL AND BUILD_TESTING
)
add_subdirectory
(
tests
)
add_custom_target
(
check COMMAND
${
CMAKE_CTEST_COMMAND
}
-V
)
add_subdirectory
(
tests EXCLUDE_FROM_ALL
)
endif
()
endif
()
option
(
LoadStaticSharedTargets_INCLUDE_PACKAGING
"Include packaging rules for LoadStaticSharedTargets"
"
${
IS_TOP_LEVEL
}
"
)
option
(
LoadStaticSharedTargets_INCLUDE_PACKAGING
"Include packaging rules for LoadStaticSharedTargets"
"
${
IS_TOP_LEVEL
}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment