mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 11:19:10 +00:00
Make building the tests optional.
Make gtest build with shared crt by defaul. It would be better to do this in one of our own CMakeLists instead of google's but I couldn't figure out how.
This commit is contained in:
@ -96,6 +96,7 @@ endif(PLASMA_TARGETS STREQUAL "Ethereal")
|
||||
option(PLASMA_BUILD_RESOURCE_DAT "Do we want to build resource.dat?" ON)
|
||||
option(PLASMA_BUILD_LAUNCHER "Do we want to build plUruLauncher?" ON)
|
||||
option(PLASMA_BUILD_TOOLS "Do we want to build the Plasma tools?" ON)
|
||||
<<<<<<< HEAD
|
||||
|
||||
option(3dsm_BUILD_PLUGIN "Do we want to build the 3ds Max plugin?" OFF)
|
||||
if(3dsm_BUILD_PLUGIN)
|
||||
@ -103,6 +104,9 @@ if(3dsm_BUILD_PLUGIN)
|
||||
add_definitions(-DBUILDING_MAXPLUGIN)
|
||||
endif(3dsm_BUILD_PLUGIN)
|
||||
|
||||
=======
|
||||
option(PLASMA_BUILD_TESTS "Do we want to build the unit tests?" OFF)
|
||||
>>>>>>> Make building the tests optional.
|
||||
option(USE_VLD "Build and link with Visual Leak Detector (MSVC only)" OFF)
|
||||
if(USE_VLD)
|
||||
add_definitions(-DUSE_VLD)
|
||||
@ -128,4 +132,7 @@ include_directories(${OPENSSL_INCLUDE_DIR})
|
||||
|
||||
add_subdirectory(Sources/Plasma)
|
||||
add_subdirectory(Sources/Tools)
|
||||
add_subdirectory(Sources/Tests)
|
||||
|
||||
if(PLASMA_BUILD_TESTS)
|
||||
add_subdirectory(Sources/Tests)
|
||||
endif(PLASMA_BUILD_TESTS)
|
||||
|
@ -14,7 +14,7 @@ option(BUILD_SHARED_LIBS "Build shared libraries (DLLs)." OFF)
|
||||
option(
|
||||
gtest_force_shared_crt
|
||||
"Use shared (DLL) run-time lib even when Google Test is built as static lib."
|
||||
OFF)
|
||||
ON)
|
||||
|
||||
option(gtest_build_tests "Build all of gtest's own tests." OFF)
|
||||
|
||||
|
Reference in New Issue
Block a user