File tree 1 file changed +17
-7
lines changed
1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD 11)
6
6
find_package (OpenCV)
7
7
include_directories (${OpenCV_INCLUDE_DIRS} )
8
8
9
- add_library (EDLib STATIC
9
+ add_library (EDLib SHARED
10
10
ED.cpp
11
11
ED.h
12
12
EDCircles.cpp
@@ -21,11 +21,21 @@ add_library(EDLib STATIC
21
21
NFA.cpp
22
22
NFA.h)
23
23
24
- add_executable (test_it test_it.cpp)
25
- target_link_libraries (test_it ${OpenCV_LIBS} EDLib)
24
+ target_link_libraries (EDLib ${OpenCV_LIBS} )
26
25
27
- add_executable (test_ED test_ED.cpp)
28
- target_link_libraries (test_ED ${OpenCV_LIBS} EDLib)
26
+ FILE (GLOB HEADERS *.h)
29
27
30
- add_executable (video_test video_test.cpp)
31
- target_link_libraries (video_test ${OpenCV_LIBS} EDLib)
28
+ set (DEPENDENCY_DIR ${CMAKE_CURRENT_BINARY_DIR} /dependencies)
29
+ set (DEPENDENCY_INSTALL_DIR ${DEPENDENCY_DIR} /install )
30
+
31
+ install ( TARGETS EDLib DESTINATION lib)
32
+ install ( FILES ${HEADERS} DESTINATION include /ED_Lib )
33
+
34
+ #add_executable(test_it test_it.cpp)
35
+ #target_link_libraries(test_it ${OpenCV_LIBS} EDLib)
36
+
37
+ #add_executable(test_ED test_ED.cpp)
38
+ #target_link_libraries(test_ED ${OpenCV_LIBS} EDLib)
39
+
40
+ #add_executable(video_test video_test.cpp)
41
+ #target_link_libraries(video_test ${OpenCV_LIBS} EDLib)
You can’t perform that action at this time.
0 commit comments