-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set gtest to link to dynamic CRT on Windows
- Loading branch information
1 parent
eeeb3ee
commit a2f0d76
Showing
1 changed file
with
6 additions
and
0 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 |
---|---|---|
@@ -1,10 +1,16 @@ | ||
option(RTNEURAL_TEST_REPORTS "Output test reports to XML files" OFF) | ||
|
||
macro(rtneural_setup_testing) | ||
|
||
include(CTest) | ||
enable_testing() | ||
add_custom_target(rtneural_test COMMAND ctest -C ${Configuration} --output-on-failure) | ||
|
||
# From the GoogleTest README: | ||
# For Windows: Prevent overriding the parent project's compiler/linker settings | ||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | ||
CPMAddPackage("gh:google/[email protected]") | ||
|
||
endmacro() | ||
|
||
function(rtneural_add_test) | ||
|