Skip to content

Commit

Permalink
Corrected OpenCV paths
Browse files Browse the repository at this point in the history
  • Loading branch information
navzam committed Aug 18, 2013
1 parent 2130b52 commit 88842a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Expand Up @@ -29,10 +29,12 @@ qt4_wrap_ui(computer_SRCS_CXX ${computer_UI})
qt4_add_resources(computer_SRCS_CXX ${computer_QRC_FILES})

if(WIN32)
set(OPENCV_INSTALL_DIR ${CMAKE_SOURCE_DIR}/../opencv/build)

include_directories(${CMAKE_SOURCE_DIR}/../prefix/include)
include_directories(${CMAKE_SOURCE_DIR}/../opencv/kiss-prefix/include)
include_directories(${OPENCV_INSTALL_DIR}/include)
link_directories(${CMAKE_SOURCE_DIR}/../prefix/lib)
link_directories(${CMAKE_SOURCE_DIR}/../opencv/kiss-prefix/lib)
link_directories(${OPENCV_INSTALL_DIR}/x86/vc11/lib)
endif()

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
Expand All @@ -55,7 +57,7 @@ set(LIBRARY_OUTPUT_PATH ${computer_SOURCE_DIR}/lib)
target_link_libraries(computer ${QT_LIBRARIES} pcompiler kovanserial kar kovan)

if(WIN32)
target_link_libraries(computer opencv_core249 opencv_imgproc249)
target_link_libraries(computer opencv_core246 opencv_imgproc246)
else()
target_link_libraries(computer opencv_core opencv_imgproc)
endif()
Expand Down

0 comments on commit 88842a4

Please sign in to comment.