-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
51 lines (34 loc) · 1.42 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
cmake_minimum_required(VERSION 2.6)
project(cvmagick)
find_package(OpenCV REQUIRED )
find_package(ImageMagick COMPONENTS Magick++ convert)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
set(ROOT ~)
set(cvmagick_SOURCES
cvmagick.cpp
)
set(cvmagick_HEADERS
include/cv2x/cvmagick.h
)
include_directories(.)
include_directories(./include)
include_directories(./include/cv2x)
include_directories(${OPENCV_INCLUDE_DIRS})
include_directories(${ImageMagick_INCLUDE_DIRS})
include_directories(${ImageMagick_Magick++_INCLUDE_DIR})
add_library (cvmagick SHARED ${cvmagick_SOURCES})
add_library (cvmagick_static STATIC ${cvmagick_SOURCES})
set_target_properties(cvmagick_static PROPERTIES OUTPUT_NAME cvmagick)
install (TARGETS cvmagick
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin)
install (TARGETS cvmagick_static
ARCHIVE DESTINATION lib
LIBRARY DESTINATION lib
RUNTIME DESTINATION bin)
install(FILES ${cvmagick_HEADERS} DESTINATION include/cv2x )
#link_directories (${ROOT}/usr/local/lib)
#add_executable(im2iglrgb ${im2iglrgb_SOURCES})
#target_link_libraries(im2iglrgb ${PCL_LIBRARIES} ${OpenCV_LIBS} ${Boost_LIBRARIES} ${GSL_LIBRARIES} ${CGAL_LIBRARIES} ${CGAL_3RD_PARTY_LIBRARIES} ${ImageMagick_LIBRARIES} cvbk cvm pclx cblas)
#install(TARGETS im2iglrgb RUNTIME DESTINATION bin)