-
Notifications
You must be signed in to change notification settings - Fork 9
/
CMakeLists.txt
50 lines (45 loc) · 1.12 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
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
SET(PROJ_NAME RIC)
PROJECT (${PROJ_NAME})
# AUX_SOURCE_DIRECTORY(. SRC_LIST)
# SET(SRC_LIST testmain.cpp ./SLICSuperpixels/SLIC.cpp)
# MESSAGE(STATUS "source list: " ${SRC_LIST})
ADD_DEFINITIONS(-DWITH_SSE)
IF(MSVC)
INCLUDE_DIRECTORIES(
./include
C:/OpenCV/include
C:/OpenCV/include/opencv
C:/OpenCV/include/opencv2
)
LINK_DIRECTORIES(
C:/OpenCV/lib/x86/Debug
C:/OpenCV/lib/x86/Release
)
ELSE(MSVC)
FIND_PACKAGE(OpenCV REQUIRED)
INCLUDE_DIRECTORIES(
./include
${OpenCV_Include_Dirs}
)
ENDIF(MSVC)
ADD_EXECUTABLE(${PROJ_NAME} main.cpp RIC.cpp SLIC.cpp)
IF(MSVC)
TARGET_LINK_LIBRARIES(${PROJ_NAME}
debug opencv_core310d.lib
debug opencv_highgui310d.lib
debug opencv_imgcodecs310d.lib
debug opencv_imgproc310d.lib
debug opencv_ximgproc310d.lib
debug opencv_optflow310d.lib
debug opencv_calib3d310d.lib
optimized opencv_core310.lib
optimized opencv_highgui310.lib
optimized opencv_imgcodecs310.lib
optimized opencv_imgproc310.lib
optimized opencv_ximgproc310.lib
optimized opencv_optflow310.lib
optimized opencv_calib3d310.lib)
ELSE(MSVC)
target_link_libraries(${PROJ_NAME} ${OpenCV_LIBS})
ENDIF(MSVC)