Imported Debian version 1.0~trusty
[deb_vid.stab.git] / tests / CMakeLists.txt
CommitLineData
80f575fc
DM
1# to use intel compiler: cd cmake; CC=icc CXX=icpc cmake ../
2# very fast: faster than orc code at imgcompare without any options.
3# library needs libimf.so (link statically?)
4
5cmake_minimum_required (VERSION 2.6)
6project (vid.stab)
7
8SET(CMAKE_BUILTTYPE None)
9set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/../CMakeModules/")
10
11#add_definitions( -Wall -O3 -Wno-pointer-sign -DTESTING -std=gnu99)
12add_definitions( -Wall -O0 -g -Wno-pointer-sign -DTESTING -std=gnu99)
13find_package(Orc)
14if(ORC_FOUND)
15add_definitions( -DUSE_ORC ${ORC_DEFINITIONS})
16include_directories( ${ORC_INCLUDE_DIRS} )
17else()
18add_definitions( -DDISABLE_ORC)
19endif()
20
21add_definitions( -DUSE_SSE2 -msse2 -ffast-math -fno-show-column ) # -DUSE_SSE2_ASM
22
23if(USE_OMP)
24add_definitions(-fopenmp -DUSE_OMP)
25endif()
26
27# Make sure the compiler can find include files from transcode
28include_directories (../src)
29
30add_executable (tests tests.c testutils.c testframework.c ../src/vsvector.c
31 ../src/transform.c ../src/transformfloat.c ../src/transformfixedpoint.c
32 ../src/libvidstab.c ../src/transformtype.c ../src/frameinfo.c
33 ../src/serialize.c ../src/localmotion2transform.c
34 ../src/motiondetect.c ../src/motiondetect_opt.c ../src/orc/motiondetectorc.c ../src/boxblur.c)
35
36target_link_libraries(tests m)
37if(ORC_FOUND)
38target_link_libraries(tests ${ORC_LIBRARIES})
39endif()
40if(USE_OMP)
41target_link_libraries(tests gomp)
42endif()
43