Skip to content

Commit

Permalink
changes cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
BigNoobWasTaken committed Jan 26, 2024
1 parent 2db3098 commit 9a094da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ install(
add_subdirectory("src/binary_tensor/core")
add_subdirectory("test")

enable_testing()
add_test(
NAME TestBinary
COMMAND binarytensor_test)

set(CPACK_PACKAGE_NAME "BinaryTensor")
set(CPACK_PACKAGE_VENDOR "TensorArray-Creators")
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY)
Expand Down
12 changes: 0 additions & 12 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,3 @@ enable_language(C CXX)
add_executable(binarytensor_test main.cpp)
target_include_directories(binarytensor_test PRIVATE ${PROJECT_SOURCE_DIR}/src)
target_link_libraries(binarytensor_test PRIVATE BinaryTensor::Core)
enable_testing()
include(CTest)
add_test(
NAME TestBinary
COMMAND binarytensor_test)

install(
TARGETS binarytensor_test
EXPORT BinaryTensorTargets
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
COMPONENT runtime)

0 comments on commit 9a094da

Please sign in to comment.