| 1 | enable_language(ASM_YASM) |
| 2 | |
| 3 | if(MSVC_IDE) |
| 4 | set(YASM_SRC checkasm-a.obj) |
| 5 | add_custom_command( |
| 6 | OUTPUT checkasm-a.obj |
| 7 | COMMAND ${YASM_EXECUTABLE} |
| 8 | ARGS ${YASM_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/checkasm-a.asm -o checkasm-a.obj |
| 9 | DEPENDS checkasm-a.asm) |
| 10 | else() |
| 11 | set(YASM_SRC checkasm-a.asm) |
| 12 | endif() |
| 13 | |
| 14 | check_symbol_exists(__rdtsc "intrin.h" HAVE_RDTSC) |
| 15 | if(HAVE_RDTSC) |
| 16 | add_definitions(-DHAVE_RDTSC=1) |
| 17 | endif() |
| 18 | |
| 19 | add_executable(TestBench ${YASM_SRC} |
| 20 | testbench.cpp testharness.h |
| 21 | pixelharness.cpp pixelharness.h |
| 22 | mbdstharness.cpp mbdstharness.h |
| 23 | ipfilterharness.cpp ipfilterharness.h |
| 24 | intrapredharness.cpp intrapredharness.h) |
| 25 | target_link_libraries(TestBench x265-static ${PLATFORM_LIBS}) |
| 26 | |
| 27 | add_executable(PoolTest testpool.cpp) |
| 28 | target_link_libraries(PoolTest x265-static ${PLATFORM_LIBS}) |