Arrange Test directory.

This commit is contained in:
Krad
2023-04-23 09:30:47 +08:00
parent 1b1ba3cc03
commit 47443b309d
7 changed files with 171 additions and 122 deletions

View File

@@ -29,9 +29,10 @@ INCLUDE_DIRECTORIES(${GTEST_INCLUDE_DIRS})
include_directories(./src ./src/util)
file(GLOB_RECURSE test_cpp ./test/*.cpp)
file(GLOB_RECURSE test_h ./test/*.h)
enable_testing()
add_executable(Aurora_Test ${cpp_files} ${test_cpp})
add_executable(Aurora_Test ${cpp_files} ${test_cpp} ${test_h})
target_compile_options(Aurora_Test PUBLIC $<TARGET_PROPERTY:MKL::MKL,INTERFACE_COMPILE_OPTIONS>)
target_include_directories(Aurora_Test PUBLIC $<TARGET_PROPERTY:MKL::MKL,INTERFACE_INCLUDE_DIRECTORIES>)
target_link_libraries(Aurora_Test PUBLIC $<LINK_ONLY:MKL::MKL>)