mirror of
https://github.com/simon987/wavelib.git
synced 2025-04-18 01:46:41 +00:00
some improvements
This commit is contained in:
parent
0ed5135772
commit
d68b19c1c8
@ -32,12 +32,14 @@ else()
|
||||
message(FATAL_ERROR "Boost >= 1.35 required for testing wavelib")
|
||||
endif()
|
||||
|
||||
|
||||
if(BUILD_UT)
|
||||
include(CTest)
|
||||
enable_testing()
|
||||
add_subdirectory(unitTests)
|
||||
|
||||
add_custom_target(CopyDataFiles
|
||||
|
||||
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/test/signal.txt ${COMMON_BIN_PATH}/Debug
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/test/signal.txt ${COMMON_BIN_PATH}/Release
|
||||
|
||||
|
@ -30,5 +30,9 @@ target_include_directories(wavelibLibTests PUBLIC
|
||||
|
||||
target_compile_definitions(wavelibLibTests PUBLIC BOOST_ALL_NO_LIB UNIT_TEST)
|
||||
|
||||
file( MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/Debug")
|
||||
file( MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/Release")
|
||||
|
||||
install(TARGETS wavelibLibTests
|
||||
RUNTIME DESTINATION bin
|
||||
LIBRARY DESTINATION tests
|
||||
ARCHIVE DESTINATION tests
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user