-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
35 lines (25 loc) · 1.09 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
# Version 2.8.10 onwards is required for dependency build to work correctly.
cmake_minimum_required(VERSION 2.8.10)
project( HAL )
cmake_policy(SET CMP0057 NEW)
# Add to module path, so we can find our cmake modules
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
if(ANDROID)
set(ANDROID_PACKAGE_NAME "edu.colorado.arpg")
endif()
################################################################################
option( BUILD_SHARED_LIBS "Build shared libraries." ON )
add_definitions(-DSOPHUS_USE_BASIC_LOGGING)
find_package( OpenCV REQUIRED )
include_directories( ${OpenCV_INCLUDE_DIRS} )
include_directories( ${CMAKE_CURRENT_BINARY_DIR})
add_subdirectory( HAL )
set( HAL_DIR ${CMAKE_CURRENT_BINARY_DIR} )
set( HAL_LIBRARIES ${HAL_LIBS} hal )
set( HAL_INCLUDE_DIRS ${HAL_INCLUDES} )
link_libraries( ${HAL_LIBS} hal )
include_directories(${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} )
# make an uninstall target
include(${CMAKE_MODULE_PATH}/cmake_uninstall.cmake.in)
add_custom_target(uninstall2
COMMAND "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake")