CMakeLists.txt 478 Bytes
Newer Older
1
2
3
4
5
6
file(GLOB ARUCO_SOURCES include/*.h include/*.hpp  src/*.cpp )
find_package(OpenCV REQUIRED) 

set(ARUCO_INCLUDE ${CMAKE_CURRENT_LIST_DIR}/include)
set(ARUCO_LIBRARY ARUCO_LIBRARY)

email's avatar
email committed
7

8
9
10
11
add_library (${ARUCO_LIBRARY} ${ARUCO_SOURCES} )

target_include_directories(${ARUCO_LIBRARY} PRIVATE ${ARUCO_INCLUDE} ${OPENCV_INCLUDE})

email's avatar
email committed
12
13
14
15
target_link_libraries(${ARUCO_LIBRARY} ${OpenCV_LIBS})

set (ARUCO_LIBRARY ${ARUCO_LIBRARY} PARENT_SCOPE)
set (ARUCO_INCLUDE ${ARUCO_INCLUDE} PARENT_SCOPE)