Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Michaël Roynard
gtest-constexpr-ext
Commits
b8f91af8
Commit
b8f91af8
authored
Aug 23, 2018
by
Michaël Roynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to a less intrusive generator
parent
40b5803b
Pipeline
#4133
failed with stages
in 1 minute and 23 seconds
Changes
3
Pipelines
51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
CMakeLists.txt
CMakeLists.txt
+5
-0
include/CMakeLists.txt
include/CMakeLists.txt
+0
-2
test/CMakeLists.txt
test/CMakeLists.txt
+1
-1
No files found.
CMakeLists.txt
View file @
b8f91af8
...
...
@@ -41,6 +41,11 @@ endif(COMPILER_MSVC)
install
(
DIRECTORY include DESTINATION include FILES_MATCHING PATTERN
"*.hpp"
)
set
(
CMAKE_MODULE_PATH
${
CMAKE_BINARY_DIR
}
)
find_package
(
gtest REQUIRED
)
add_subdirectory
(
include
)
enable_testing
()
...
...
include/CMakeLists.txt
View file @
b8f91af8
find_package
(
gtest REQUIRED
)
set
(
GTEST_CONSTEXPR_EXT_INCLUDE_DIR
"
${
PROJECT_SOURCE_DIR
}
/include"
)
add_library
(
Gtest-constexpr-ext INTERFACE
)
...
...
test/CMakeLists.txt
View file @
b8f91af8
...
...
@@ -16,7 +16,7 @@ macro(add_unit_test Executable Source)
target_compile_options
(
test_
${
Executable
}
PRIVATE -Wno-unused-private-field
)
endif
()
target_link_libraries
(
test_
${
Executable
}
PRIVATE
CONAN_PKG
::gtest
)
target_link_libraries
(
test_
${
Executable
}
PRIVATE
gtest
::gtest
)
target_link_libraries
(
test_
${
Executable
}
PRIVATE Threads::Threads
)
add_dependencies
(
tests-compile test_
${
Executable
}
)
...
...
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