Skip to content

Commit

Permalink
fix style by cmake-format
Browse files Browse the repository at this point in the history
  • Loading branch information
luk036 committed Jul 17, 2021
1 parent 6202769 commit 37eb3bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ target_link_libraries(Recti PRIVATE fmt::fmt Boost::boost)

target_include_directories(
Recti PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include/${PROJECT_NAME}-${PROJECT_VERSION}>
$<INSTALL_INTERFACE:include/${PROJECT_NAME}-${PROJECT_VERSION}>
)

# ---- Create an installable target ----
Expand Down
6 changes: 2 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ add_executable(RectiTests ${sources})
target_link_libraries(RectiTests doctest::doctest Recti::Recti GSL Boost::boost)
set_target_properties(RectiTests PROPERTIES CXX_STANDARD 17)

# target_include_directories( RectiTests PUBLIC
# $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
# target_include_directories( RectiTests PUBLIC $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
# $<INSTALL_INTERFACE:include/${PROJECT_NAME}-${PROJECT_VERSION}> PRIVATE ${BOOST_INCLUDE_DIRS} )

# enable compiler warnings
Expand All @@ -67,8 +66,7 @@ endif()
enable_testing()

# Note: doctest and similar testing frameworks can automatically configure CMake tests. For other
# testing frameworks add the tests target instead: add_test(NAME rectiTests COMMAND
# RectiTests)
# testing frameworks add the tests target instead: add_test(NAME rectiTests COMMAND RectiTests)

include(${doctest_SOURCE_DIR}/scripts/cmake/doctest.cmake)
doctest_discover_tests(RectiTests)
Expand Down

0 comments on commit 37eb3bf

Please sign in to comment.