25 lines
946 B
Diff
25 lines
946 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index f1ecfe0..9056f9d 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -83,8 +83,9 @@ ExternalProject_Add(BearSource
|
|
-DCMAKE_MODULE_LINKER_FLAGS:STRING=${CMAKE_MODULE_LINKER_FLAGS}
|
|
-DROOT_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
|
|
${CMAKE_CACHE_ARGS_EXTRA}
|
|
- TEST_BEFORE_INSTALL
|
|
+ TEST_EXCLUDE_FROM_MAIN
|
|
1
|
|
+ STEP_TARGETS test
|
|
TEST_COMMAND
|
|
ctest # or `ctest -T memcheck`
|
|
)
|
|
@@ -100,7 +101,8 @@ if (ENABLE_FUNC_TESTS)
|
|
-DCMAKE_INSTALL_LIBDIR:PATH=${CMAKE_INSTALL_LIBDIR}
|
|
-DCMAKE_INSTALL_BINDIR:PATH=${CMAKE_INSTALL_BINDIR}
|
|
-DSTAGED_INSTALL_PREFIX:PATH=${STAGED_INSTALL_PREFIX}
|
|
- TEST_BEFORE_INSTALL
|
|
+ TEST_EXCLUDE_FROM_MAIN
|
|
+ STEP_TARGETS test
|
|
1
|
|
INSTALL_COMMAND
|
|
""
|