set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
-option(BUILD_TESTS "Build Tests" OFF)
-
-if(BUILD_TESTS)
- enable_testing()
-endif()
-
if(APPLE)
option(BUILD_STATIC_LOADER "Build a loader that can be statically linked" OFF)
endif()
add_subdirectory(loader)
+option(BUILD_TESTS "Build Tests")
if(BUILD_TESTS)
# Set gtest build configuration
# Attempt to enable if it is available.
endif()
if (BUILD_TESTS)
+ enable_testing()
add_subdirectory(tests)
endif()
-
endif()