-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
24 lines (16 loc) · 828 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 2.8.12)
project(videoStab_L1)
include_directories(lpsolve)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories("D:\\videoStabL1\\lpsolve")
set(OpenCV_DIR C:\\Program Files (x86)\\opencv\\opencv\\opencv\\build)
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
set(LPSOLVE_LIBRARIES D:\\videoStabL1\\lpsolve\\lpsolve55.lib)
set(LPSOLVE_DLL D:\\videoStabL1\\lpsolve\\lpsolve55.dll)
add_executable(videoStab videostab.cpp)
#target_link_libraries(VideoStablization cvplot)
TARGET_LINK_LIBRARIES(videoStab PRIVATE ${LPSOLVE_LIBRARIES})
TARGET_LINK_LIBRARIES(videoStab PUBLIC ${OpenCV_LIBS})
configure_file(${LPSOLVE_DLL} ${CMAKE_BINARY_DIR}/lpsolve55.dll COPYONLY)
set_target_properties(videoStab PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR})