CMakeLists.txt 591 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
file(GLOB CCALIB_SOURCES include/*.h include/*.hpp  src/*.cpp)
find_package(OpenCV REQUIRED) 

set(CCALIB_INCLUDE ${CMAKE_CURRENT_LIST_DIR}/include)
set(CCALIB_LIBRARY CCALIB_LIBRARY)

set(CCALIB_INCLUDE ${CCALIB_INCLUDE} PARENT_SCOPE)
set(CCALIB_LIBRARY ${CCALIB_LIBRARY} PARENT_SCOPE)

email's avatar
email committed
10
add_library (${CCALIB_LIBRARY} ${CCALIB_SOURCES} )
11

email's avatar
email committed
12
13
target_include_directories(${CCALIB_LIBRARY} PRIVATE  ${CCALIB_INCLUDE} ${OPENCV_INCLUDE} ${ARUCO_INCLUDE} ${OSLabDetector_INCLUDE} ${NLOHMANN_INCLUDE})
target_link_libraries(${CCALIB_LIBRARY} ${OpenCV_LIBS} ${OSLabDetector_LIBRARY} ${ARUCO_LIBRARY} )