blob: 85dc18b0f49656779087224333102fed9f85201b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
Index: 3rdparty/CMakeLists.txt
===================================================================
--- 3rdparty/CMakeLists.txt (Revision 2403)
+++ 3rdparty/CMakeLists.txt (Arbeitskopie)
@@ -107,29 +107,8 @@
endif()
-# Compile AprilTags library if required
-set(APRILTAG_DIR ${PROJECT_SOURCE_DIR}/3rdparty/apriltag-3.3.0/)
-file(GLOB TAG_FILES ${APRILTAG_DIR}/tag*.c)
-if (${CMAKE_CXX_COMPILER_ID} STREQUAL Clang)
- # otherwise clang takes about an hour to compile
- set_source_files_properties(SOURCE ${TAG_FILES} PROPERTIES COMPILE_FLAGS -O0)
-endif()
-set(APRILTAG_SRCS
- ${APRILTAG_DIR}/apriltag.c
- ${APRILTAG_DIR}/apriltag_pose.c
- ${APRILTAG_DIR}/apriltag_quad_thresh.c)
-aux_source_directory(${APRILTAG_DIR}/common COMMON_SRC)
-add_library(apriltag SHARED ${APRILTAG_SRCS} ${COMMON_SRC} ${TAG_FILES})
-target_include_directories(apriltag PRIVATE ${APRILTAG_DIR})
-if (MSVC)
- find_package(pthreads REQUIRED)
- target_include_directories(apriltag PUBLIC ${PThreads4W_INCLUDE_DIR})
- target_link_libraries(apriltag PThreads4W::PThreads4W winmm)
-else()
- find_package(Threads REQUIRED)
- target_link_libraries(apriltag Threads::Threads m)
-endif()
-set(APRILTAG_INCLUDE_DIRS ${APRILTAG_DIR} CACHE INTERNAL "")
+find_package(apriltag REQUIRED)
+set(APRILTAG_INCLUDE_DIRS /usr/include/apriltag)
add_subdirectory(rply-1.1.4)
|