Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
foostrlen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Павел Елисеев
foostrlen
Commits
895d541c
Commit
895d541c
authored
6 months ago
by
Forgenet
Browse files
Options
Downloads
Patches
Plain Diff
Updated CMakeLists.txt for tests
parent
5e01b76c
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+0
-9
0 additions, 9 deletions
.gitignore
external/CMakeLists.txt
+0
-0
0 additions, 0 deletions
external/CMakeLists.txt
external/CMakeLists.txt.in
+0
-0
0 additions, 0 deletions
external/CMakeLists.txt.in
tests/CMakeLists.txt
+4
-2
4 additions, 2 deletions
tests/CMakeLists.txt
with
4 additions
and
11 deletions
.gitignore
+
0
−
9
View file @
895d541c
# Ignore build directories
/build/
/cmake-build-*/
# Ignore CMake generated files
CMakeFiles/
CMakeCache.txt
cmake_install.cmake
Makefile
# Ignore Ninja generated files
build.ninja
rules.ninja
.ninja_deps
.ninja_log
# Ignore Visual Studio Code workspace files
.vscode/
# Ignore JetBrains CLion project files
.idea/
# Ignore Google Test download directory
/googletest-download/
# Ignore compiled object files
*.o
*.obj
*.lo
...
...
@@ -39,12 +32,10 @@ rules.ninja
*.exp
*.pdb
# Ignore executable files
*.exe
*.out
*.app
# Ignore other temporary files
*.log
*.tmp
*.swp
...
...
This diff is collapsed.
Click to expand it.
libs
/CMakeLists.txt
→
external
/CMakeLists.txt
+
0
−
0
View file @
895d541c
File moved
This diff is collapsed.
Click to expand it.
libs
/CMakeLists.txt.in
→
external
/CMakeLists.txt.in
+
0
−
0
View file @
895d541c
File moved
This diff is collapsed.
Click to expand it.
tests/CMakeLists.txt
+
4
−
2
View file @
895d541c
file
(
MAKE_DIRECTORY
${
CMAKE_BINARY_DIR
}
/googletest-download
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../
libs
/CMakeLists.txt.in
${
CMAKE_BINARY_DIR
}
/googletest-download/CMakeLists.txt
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/../
external
/CMakeLists.txt.in
${
CMAKE_BINARY_DIR
}
/googletest-download/CMakeLists.txt
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-G
"
${
CMAKE_GENERATOR
}
"
.
RESULT_VARIABLE result
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
/googletest-download
)
...
...
@@ -18,7 +18,9 @@ add_subdirectory(${CMAKE_BINARY_DIR}/googletest-src
${
CMAKE_BINARY_DIR
}
/googletest-build
EXCLUDE_FROM_ALL
)
add_executable
(
runTests main_test.cpp
)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/src
)
file
(
GLOB_RECURSE TEST_SOURCES LIST_DIRECTORIES false *.cpp
)
add_executable
(
runTests
${
TEST_SOURCES
}
)
target_link_libraries
(
runTests gtest_main functions
)
add_test
(
NAME runTests COMMAND runTests
)
\ No newline at end of file
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