File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed
Expand file tree Collapse file tree 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)
66find_package (OpenCV )
77include_directories (${OpenCV_INCLUDE_DIRS} )
88
9- add_library (EDLib STATIC
9+ add_library (EDLib SHARED
1010 ED.cpp
1111 ED.h
1212 EDCircles.cpp
@@ -21,11 +21,21 @@ add_library(EDLib STATIC
2121 NFA.cpp
2222 NFA.h )
2323
24- add_executable (test_it test_it.cpp )
25- target_link_libraries (test_it ${OpenCV_LIBS} EDLib )
24+ target_link_libraries (EDLib ${OpenCV_LIBS} )
2625
27- add_executable (test_ED test_ED.cpp )
28- target_link_libraries (test_ED ${OpenCV_LIBS} EDLib )
26+ FILE (GLOB HEADERS *.h )
2927
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