opencv/samples/hal/c_hal/CMakeLists.txt

12 lines
361 B
CMake
Raw Normal View History

2015-12-15 20:55:43 +08:00
cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
if(UNIX)
if(CMAKE_COMPILER_IS_GNUC OR CV_ICC)
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
endif()
endif()
2015-12-17 18:25:47 +08:00
add_library(c_hal impl.c)
2015-12-15 20:55:43 +08:00
set(OPENCV_SRC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../..")
2015-12-17 18:25:47 +08:00
target_include_directories(c_hal PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${OPENCV_SRC_DIR}/modules/core/include)