Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
2907001e
Commit
2907001e
authored
May 05, 2016
by
Kevin M. Godby
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed Catch tests.
parent
e10a2fca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
CMakeLists.txt
tests/CMakeLists.txt
+8
-10
No files found.
tests/CMakeLists.txt
View file @
2907001e
...
...
@@ -5,16 +5,14 @@
enable_testing
()
# Build Catch unit tests
#function(add_catch_test _testname)
# add_executable(${_testname} ${_testname}.cpp)
# target_link_libraries(${_testname} Catch)
# add_test(NAME test_${_testname} COMMAND ${_testname})
#endfunction()
#
#file(GLOB catch_tests LIST_DIRECTORIES false *.cpp)
#foreach(catch_test IN LIST catch_tests)
# add_catch_test(${catch_test})
#endforeach()
add_library
(
catch INTERFACE
)
target_include_directories
(
catch INTERFACE
${
CMAKE_CURRENT_SOURCE_DIR
}
)
file
(
GLOB catch_tests LIST_DIRECTORIES false RELATIVE
${
CMAKE_CURRENT_SOURCE_DIR
}
*.cpp
)
add_executable
(
catch_tests
${
catch_tests
}
)
target_link_libraries
(
catch_tests spdlog
)
add_test
(
NAME catch_tests COMMAND catch_tests
)
file
(
MAKE_DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/logs"
)
# Ensure headers include their own dependencies
add_subdirectory
(
header_dependencies
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment