Skip to content
Snippets Groups Projects
Commit e25a07e8 authored by Alejandro Lopez Gestoso's avatar Alejandro Lopez Gestoso
Browse files

Adapted to CMake plural variables *_DIRS and *_LIBRARIES

parent 3f21af6f
No related branches found
No related tags found
No related merge requests found
...@@ -40,16 +40,16 @@ ENDIF (raw1394_INCLUDE_DIRS AND raw1394_LIBRARIES AND dc1394_INCLUDE_DIRS AND dc ...@@ -40,16 +40,16 @@ ENDIF (raw1394_INCLUDE_DIRS AND raw1394_LIBRARIES AND dc1394_INCLUDE_DIRS AND dc
IF (firewire_camera_ready) IF (firewire_camera_ready)
MESSAGE(STATUS "The system is libdc 2.0 capable") MESSAGE(STATUS "The system is libdc 2.0 capable")
# add all the necessary include directories (project_name_INDLUDE_DIR) # add all the necessary include directories (project_name_INDLUDE_DIR)
INCLUDE_DIRECTORIES(${iriutils_INCLUDE_DIR} ${dc1394_INCLUDE_DIRS} ${raw1394_INCLUDE_DIRS} ../include/) INCLUDE_DIRECTORIES(${iriutils_INCLUDE_DIRS} ${dc1394_INCLUDE_DIRS} ${raw1394_INCLUDE_DIRS} ../include/)
ADD_LIBRARY(firewire_camera SHARED ${sources}) ADD_LIBRARY(firewire_camera SHARED ${sources})
#if CV then add the libraries #if CV then add the libraries
if (USE_CV) if (USE_CV)
TARGET_LINK_LIBRARIES(firewire_camera ${OpenCV_LIBS} ${iriutils_LIBRARY} ${dc1394_LIBRARIES} ${raw1394_LIBRARIES}) TARGET_LINK_LIBRARIES(firewire_camera ${OpenCV_LIBS} ${iriutils_LIBRARIES} ${dc1394_LIBRARIES} ${raw1394_LIBRARIES})
INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS}) INCLUDE_DIRECTORIES(${OpenCV_INCLUDE_DIRS})
else(USE_CV) else(USE_CV)
TARGET_LINK_LIBRARIES(firewire_camera ${iriutils_LIBRARY} ${dc1394_LIBRARIES} ${raw1394_LIBRARIES}) TARGET_LINK_LIBRARIES(firewire_camera ${iriutils_LIBRARIES} ${dc1394_LIBRARIES} ${raw1394_LIBRARIES})
endif(USE_CV) endif(USE_CV)
INSTALL(TARGETS firewire_camera INSTALL(TARGETS firewire_camera
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment