Skip to content

Commit

Permalink
Continue including GTest dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
chiphogg committed Oct 21, 2024
1 parent 0f62400 commit 31cc38a
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,30 @@ set(AU_EXPORT_SET_NAME AuHeaders)
if(AU_ENABLE_TESTING)
message(STATUS "Unit tests enabled")
enable_testing()

# Bring in GoogleTest so we can build and run the tests.
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG 58d77fa8070e8cec2dc1ed015d66b454c8d78850 # Release 1.12.1
FIND_PACKAGE_ARGS
1.12.1
NAMES GTest
)

# https://google.github.io/googletest/quickstart-cmake.html
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

FetchContent_MakeAvailable(googletest)
include(GoogleTest)

set(AU_CONFIG_FIND_GTEST_LINE "find_dependency(googletest 1.12.1)")
else()
message(STATUS "Unit tests disabled")
endif()

# Bring in GoogleTest so we can build and run the tests.
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG 58d77fa8070e8cec2dc1ed015d66b454c8d78850 # Release 1.12.1
FIND_PACKAGE_ARGS
1.12.1
NAMES GTest
)

# https://google.github.io/googletest/quickstart-cmake.html
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

FetchContent_MakeAvailable(googletest)
include(GoogleTest)

set(AU_CONFIG_FIND_GTEST_LINE "find_dependency(googletest 1.12.1)")

add_subdirectory(au)

# Configure how Au will be installed.
Expand Down

0 comments on commit 31cc38a

Please sign in to comment.