-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
57 lines (45 loc) · 1.08 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
cmake_minimum_required(VERSION 3.5)
#set(simu_Lua on)
add_subdirectory(../simuGL/src
${CMAKE_CURRENT_BINARY_DIR}/simuGL
)
# opencv
find_package( OpenCV REQUIRED )
# apriltag
SET (AprilTag_FOUND 0)
FIND_PATH (AprilTag_INCLUDE_DIR
NAMES apriltag.h
PATH_SUFFIXES apriltag
DOC "The AprilTag include directory"
)
FIND_LIBRARY (AprilTag_LIB
NAMES apriltag
DOC "The AprilTag shared library"
)
INCLUDE (FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS (AprilTag
FOUND_VAR AprilTag_FOUND
REQUIRED_VARS AprilTag_LIB AprilTag_INCLUDE_DIR)
IF (NOT AprilTag_FOUND)
MESSAGE (WARNING "The AprilTag Library has not been found!")
ENDIF (NOT AprilTag_FOUND)
# AprilTag_INCLUDE_DIR, where to find TagDetector.h, etc.
# AprilTag_LIB, libraries to link against to use AprilTag.
set(CMAKE_BUILD_TYPE Debug)
add_definitions(
${simu_definitions}
)
add_executable(main
${simu_cpps}
MainLoop.cpp
solve_square.c
)
include_directories(
${simu_include_dirs}
${AprilTag_INCLUDE_DIR}
)
target_link_libraries(main
${simu_link_libraries}
${OpenCV_LIBS}
${AprilTag_LIB}
)