mirror of
https://github.com/simon987/wavelib.git
synced 2025-04-20 10:36:46 +00:00
some improvements
This commit is contained in:
parent
0ed5135772
commit
d68b19c1c8
@ -32,10 +32,12 @@ else()
|
|||||||
message(FATAL_ERROR "Boost >= 1.35 required for testing wavelib")
|
message(FATAL_ERROR "Boost >= 1.35 required for testing wavelib")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
if(BUILD_UT)
|
if(BUILD_UT)
|
||||||
include(CTest)
|
include(CTest)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
add_subdirectory(unitTests)
|
add_subdirectory(unitTests)
|
||||||
|
|
||||||
add_custom_target(CopyDataFiles
|
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}/Debug
|
||||||
|
@ -30,5 +30,9 @@ target_include_directories(wavelibLibTests PUBLIC
|
|||||||
|
|
||||||
target_compile_definitions(wavelibLibTests PUBLIC BOOST_ALL_NO_LIB UNIT_TEST)
|
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