Disabled detach head message && move concurrent test logic to main cmake

git-svn-id: svn://db.shs.com.ru/pip@874 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
3 changed files with 12 additions and 16 deletions

View File

@@ -53,6 +53,10 @@ set(PIP_LIBS_TARGETS pip)
set(LIBS_MAIN)
set(LIBS_STATUS)
if (TESTS)
set(PIP_SRC_CONCURRENT_TEST "src_concurrent/test")
endif()
if (DEFINED ENV{QNX_HOST} OR PIP_FREERTOS)
set(STATIC_LIB ON)
endif()
@@ -162,8 +166,10 @@ gather_src("${PIP_SRC_OPENCL}" CPP_LIB_OPENCL HDRS PHDRS)
# IO Utils lib
gather_src("${PIP_SRC_IO_UTILS}" CPP_LIB_IO_UTILS HDRS PHDRS)
# Concurrent lib
gather_src("${PIP_SRC_CONCURRENT}" CPP_LIB_CONCURRENT HDRS PHDRS)
gather_src("${PIP_SRC_CONCURRENT_TEST}" CPP_CONCURRENT_TEST HDRS PHDRS)
if(PIP_FREERTOS)
add_definitions(-DPIP_FREERTOS)
@@ -493,7 +499,10 @@ if (NOT PIP_FREERTOS)
# Enable build tests for concurrent module
if(CONCURRENT_TESTS)
add_subdirectory(src_concurrent/test)
add_executable(pip_concurrent_test ${CPP_CONCURRENT_TEST})
target_link_libraries(pip_concurrent_test gtest_main gmock_main pip_concurrent)
add_test(NAME pip_concurrent_test COMMAND tests)
add_custom_target(pip_concurrent_test_perform ALL COMMAND pip_concurrent_test)
endif()
# Test program
@@ -501,7 +510,7 @@ if (NOT PIP_FREERTOS)
add_executable(pip_test "main.cpp")
target_link_libraries(pip_test pip)
endif()
else(NOT PIP_FREERTOS)
message(STATUS "Building PIP with crypt support")
add_definitions(-DPIP_CRYPT)