1 cmake_minimum_required (VERSION 2.6)
5 audio_channel_layout_test.cpp
17 add_executable(unit-test ${SOURCES} ${HEADERS})
18 add_precompiled_header(unit-test stdafx.h FORCEINCLUDE)
20 target_link_libraries(unit-test
28 target_link_libraries(unit-test
33 target_link_libraries(unit-test
38 include_directories(..)
39 include_directories(${BOOST_INCLUDE_PATH})
40 include_directories(${RXCPP_INCLUDE_PATH})
41 include_directories(${TBB_INCLUDE_PATH})
42 include_directories(${GTEST_INCLUDE_PATH})
44 source_group(sources ./*)
46 set(OUTPUT_FOLDER "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}")
48 foreach(FILE_TO_COPY ${CASPARCG_RUNTIME_DEPENDENCIES})
49 if(IS_DIRECTORY ${FILE_TO_COPY})
50 get_filename_component(FOLDER_NAME "${FILE_TO_COPY}" NAME)
51 add_custom_command(TARGET unit-test POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory \"${FILE_TO_COPY}\" \"${OUTPUT_FOLDER}/${FOLDER_NAME}\")
52 add_custom_command(TARGET unit-test POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory \"${FILE_TO_COPY}\" \"${CMAKE_CURRENT_BINARY_DIR}/${FOLDER_NAME}\")
54 add_custom_command(TARGET unit-test POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy \"${FILE_TO_COPY}\" \"${OUTPUT_FOLDER}/\")
55 add_custom_command(TARGET unit-test POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy \"${FILE_TO_COPY}\" \"${CMAKE_CURRENT_BINARY_DIR}/\")
57 endforeach(FILE_TO_COPY)