Mercurial > hg > forks > libbpg
comparison x265/source/test/CMakeLists.txt @ 0:772086c29cc7
Initial import.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 16 Nov 2016 11:16:33 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:772086c29cc7 |
---|---|
1 # vim: syntax=cmake | |
2 enable_language(ASM_YASM) | |
3 | |
4 if(MSVC_IDE) | |
5 set(YASM_SRC checkasm-a.obj) | |
6 add_custom_command( | |
7 OUTPUT checkasm-a.obj | |
8 COMMAND ${YASM_EXECUTABLE} | |
9 ARGS ${YASM_FLAGS} ${CMAKE_CURRENT_SOURCE_DIR}/checkasm-a.asm -o checkasm-a.obj | |
10 DEPENDS checkasm-a.asm) | |
11 else() | |
12 set(YASM_SRC checkasm-a.asm) | |
13 endif() | |
14 | |
15 check_symbol_exists(__rdtsc "intrin.h" HAVE_RDTSC) | |
16 if(HAVE_RDTSC) | |
17 add_definitions(-DHAVE_RDTSC=1) | |
18 endif() | |
19 | |
20 add_executable(TestBench ${YASM_SRC} | |
21 testbench.cpp testharness.h | |
22 pixelharness.cpp pixelharness.h | |
23 mbdstharness.cpp mbdstharness.h | |
24 ipfilterharness.cpp ipfilterharness.h | |
25 intrapredharness.cpp intrapredharness.h) | |
26 target_link_libraries(TestBench x265-static ${PLATFORM_LIBS}) | |
27 if(LINKER_OPTIONS) | |
28 if(EXTRA_LIB) | |
29 list(APPEND LINKER_OPTIONS "-L..") | |
30 endif(EXTRA_LIB) | |
31 string(REPLACE ";" " " LINKER_OPTION_STR "${LINKER_OPTIONS}") | |
32 set_target_properties(TestBench PROPERTIES LINK_FLAGS "${LINKER_OPTION_STR}") | |
33 endif() |