-
Notifications
You must be signed in to change notification settings - Fork 27
/
artoolkit.cmake
118 lines (107 loc) · 3.1 KB
/
artoolkit.cmake
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Made by rdb, released in the public domain.
cmake_minimum_required(VERSION 2.8)
project(artoolkit)
option(BUILD_SHARED_LIBS "Enable to build libAR as a shared library." OFF)
option(AR_OPENGL_TEXTURE_RECTANGLE "Enable to build gsub libraries with GL_NV_texture_rectangle support." OFF)
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
option(AR_INPUT_V4L "Use Video4Linux video capture driver." ON)
option(AR_INPUT_DV "Use Digital Video Camcoder through IEEE 1394 (DV Format) capture driver." OFF)
option(AR_INPUT_1394CAM "Use Digital Video Camera through IEEE 1394 (VGA NONCOMPRESSED Image Format) capture driver." OFF)
option(AR_INPUT_GSTREAMER "Use GStreamer Media Framework capture driver." OFF)
endif()
if(APPLE)
option(APPLE_TEXTURE_FAST_TRANSFER "Set if your Mac has fast texture mapping hardware." OFF)
endif()
configure_file(include/AR/config.h.cmake AR/config.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(include)
set(AR_SOURCES
lib/SRC/AR/arDetectMarker.c
lib/SRC/AR/arDetectMarker2.c
lib/SRC/AR/arGetCode.c
lib/SRC/AR/arGetMarkerInfo.c
lib/SRC/AR/arGetTransMat.c
lib/SRC/AR/arGetTransMat2.c
lib/SRC/AR/arGetTransMat3.c
lib/SRC/AR/arGetTransMatCont.c
lib/SRC/AR/arLabeling.c
lib/SRC/AR/arUtil.c
lib/SRC/AR/mAlloc.c
lib/SRC/AR/mAllocDup.c
lib/SRC/AR/mAllocInv.c
lib/SRC/AR/mAllocMul.c
lib/SRC/AR/mAllocTrans.c
lib/SRC/AR/mAllocUnit.c
lib/SRC/AR/mDet.c
lib/SRC/AR/mDisp.c
lib/SRC/AR/mDup.c
lib/SRC/AR/mFree.c
lib/SRC/AR/mInv.c
lib/SRC/AR/mMul.c
lib/SRC/AR/mPCA.c
lib/SRC/AR/mSelfInv.c
lib/SRC/AR/mTrans.c
lib/SRC/AR/mUnit.c
lib/SRC/AR/paramChangeSize.c
lib/SRC/AR/paramDecomp.c
lib/SRC/AR/paramDisp.c
lib/SRC/AR/paramDistortion.c
lib/SRC/AR/paramFile.c
lib/SRC/AR/paramGet.c
lib/SRC/AR/vAlloc.c
lib/SRC/AR/vDisp.c
lib/SRC/AR/vFree.c
lib/SRC/AR/vHouse.c
lib/SRC/AR/vInnerP.c
lib/SRC/AR/vTridiag.c
)
set(ARMULTI_SOURCES
lib/SRC/ARMulti/arMultiActivate.c
lib/SRC/ARMulti/arMultiGetTransMat.c
lib/SRC/ARMulti/arMultiReadConfigFile.c
)
if(MSVC)
add_library(libAR ${AR_SOURCES})
add_library(libARMulti ${ARMULTI_SOURCES})
install(TARGETS libAR libARMulti DESTINATION lib)
else()
add_library(AR ${AR_SOURCES})
add_library(ARMulti ${ARMULTI_SOURCES})
install(TARGETS AR ARMulti DESTINATION lib)
endif()
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/AR/config.h
include/AR/ar.h
include/AR/arMulti.h
include/AR/arvrml.h
include/AR/gsub.h
include/AR/gsub_lite.h
include/AR/gsubUtil.h
include/AR/matrix.h
include/AR/param.h
include/AR/video.h
DESTINATION include/AR
)
install(FILES
${CMAKE_CURRENT_BINARY_DIR}/AR/config.h
include/AR/ar.h
include/AR/arMulti.h
include/AR/arvrml.h
include/AR/gsub.h
include/AR/gsub_lite.h
include/AR/gsubUtil.h
include/AR/matrix.h
include/AR/param.h
include/AR/video.h
DESTINATION include/AR
)
install(FILES
include/AR/sys/videoGStreamer.h
include/AR/sys/videoLinux1394Cam.h
include/AR/sys/videoLinuxDV.h
include/AR/sys/videoLinuxV4L.h
include/AR/sys/videoMacOSX.h
include/AR/sys/videoSGI.h
include/AR/sys/videoWin32DirectShow.h
DESTINATION include/AR/sys
)