CMakeLists.txt 534 Bytes
Newer Older
Ahmed's avatar
Ahmed committed
1
2
3
4
5
6
7
8
9
10
11
12
cmake_minimum_required(VERSION 3.5)
project(BallTracking CXX)
set(CMAKE_CXX_STANDARD 11)


add_executable(BallTracking BallTracking.cpp)

set_target_properties(BallTracking PROPERTIES LINKER_LANGUAGE CXX)
find_package(OpenCV REQUIRED)

set(INCLUDE_DIRS ${INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})
set(LIBS ${LIBS} ${OpenCV_LIBS})
Ahmed Diab's avatar
Ahmed Diab committed
13

Ahmed's avatar
Ahmed committed
14
target_include_directories(BallTracking PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
Ahmed Diab's avatar
Ahmed Diab committed
15
target_link_libraries(BallTracking ba_ballTracking ${LIBS} -lblas -lopenblas)
Ahmed's avatar
Ahmed committed
16
export(TARGETS BallTracking FILE BallTracking.cmake)