From f3557fc485517922a656653a38c0a1c3fa662b60 Mon Sep 17 00:00:00 2001 From: Brad Wu <26424577+wusatosi@users.noreply.github.com> Date: Wed, 2 Oct 2024 13:14:11 -0400 Subject: [PATCH] reformat --- CMakeLists.txt | 28 ++++++++++++++++------------ src/beman/exemplar/CMakeLists.txt | 22 ++++++++++++---------- 2 files changed, 28 insertions(+), 22 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9292b52..0b48158 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,18 +15,22 @@ include(FetchContent) if(BUILD_TESTING) enable_testing() - block() - # Disable installing google test dependency on cmake --install - set(INSTALL_GTEST OFF) - - # Fetch GoogleTest - FetchContent_Declare( - googletest - GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG f8d7d77c06936315286eb55f8de22cd23c188571 # release-1.14.0 - EXCLUDE_FROM_ALL CMAKE_ARGS -DBUILD_TESTING=OFF) - FetchContent_MakeAvailable(googletest) - endblock() + block() + # Disable installing google test dependency on cmake --install + set(INSTALL_GTEST OFF) + + # Fetch GoogleTest + FetchContent_Declare( + googletest + GIT_REPOSITORY https://github.com/google/googletest.git + GIT_TAG + f8d7d77c06936315286eb55f8de22cd23c188571 # release-1.14.0 + EXCLUDE_FROM_ALL + CMAKE_ARGS + -DBUILD_TESTING=OFF + ) + FetchContent_MakeAvailable(googletest) + endblock() endif() add_subdirectory(src/beman/exemplar) diff --git a/src/beman/exemplar/CMakeLists.txt b/src/beman/exemplar/CMakeLists.txt index 5a677cc..9493be0 100644 --- a/src/beman/exemplar/CMakeLists.txt +++ b/src/beman/exemplar/CMakeLists.txt @@ -8,20 +8,22 @@ target_sources(beman.exemplar PRIVATE identity.cpp) set(INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../include/) target_sources( - beman.exemplar PUBLIC - FILE_SET HEADERS - BASE_DIRS ${INCLUDE_DIR} - FILES ${INCLUDE_DIR}/beman/exemplar/identity.hpp) + beman.exemplar + PUBLIC + FILE_SET HEADERS + BASE_DIRS ${INCLUDE_DIR} + FILES ${INCLUDE_DIR}/beman/exemplar/identity.hpp +) set_target_properties(beman.exemplar PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON) install( - TARGETS beman.exemplar - EXPORT beman.exemplar - DESTINATION $<$:debug/>${CMAKE_INSTALL_LIBDIR} - RUNTIME DESTINATION $<$:debug/>${CMAKE_INSTALL_BINDIR} - FILE_SET HEADERS - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + TARGETS beman.exemplar + EXPORT beman.exemplar + DESTINATION + $<$:debug/>${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION $<$:debug/>${CMAKE_INSTALL_BINDIR} + FILE_SET HEADERS DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ) if(BUILD_TESTING)