Fix cut&paste typo in changelog.
[deb_x265.git] / source / test / CMakeLists.txt
CommitLineData
72b9787e
JB
1enable_language(ASM_YASM)
2
3if(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)
10else()
11 set(YASM_SRC checkasm-a.asm)
12endif()
13
14check_symbol_exists(__rdtsc "intrin.h" HAVE_RDTSC)
15if(HAVE_RDTSC)
16 add_definitions(-DHAVE_RDTSC=1)
17endif()
18
19add_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)
25target_link_libraries(TestBench x265-static ${PLATFORM_LIBS})