Skip to content

Commit

Permalink
Use the target kigumi
Browse files Browse the repository at this point in the history
  • Loading branch information
unageek committed Sep 14, 2024
1 parent 8cc9979 commit 2da10c0
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(TARGET kigumi-test)
set(TARGET kigumi_tests)

add_executable(${TARGET}
bounded_side_test.cc
Expand All @@ -10,25 +10,15 @@ add_executable(${TARGET}
)

if(UNIX)
target_compile_options(${TARGET} PRIVATE -Wall -Wextra -Werror -fsanitize=undefined)
target_compile_options(${TARGET} PRIVATE -Wall -Wextra -Werror)
elseif(MSVC)
target_compile_options(${TARGET} PRIVATE /W4 /WX /wd4702)
endif()

target_include_directories(${TARGET} PRIVATE
${PROJECT_SOURCE_DIR}/include
)

target_link_libraries(${TARGET} PRIVATE
Boost::container
Boost::container_hash
Boost::endian
Boost::iterator
Boost::range
CGAL::CGAL
GTest::gtest
GTest::gtest_main
-fsanitize=undefined
kigumi
)

add_test(NAME ${TARGET} COMMAND $<TARGET_FILE:${TARGET}>)

0 comments on commit 2da10c0

Please sign in to comment.