Skip to content

Commit

Permalink
whycon installation and cmake files
Browse files Browse the repository at this point in the history
  • Loading branch information
v01d committed Mar 11, 2014
1 parent 911bd95 commit 48d8d30
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,8 @@ SET(camera_calibrator_sources camera_calibrator.cpp)
add_executable(camera_calibrator ${camera_calibrator_sources})
target_link_libraries(camera_calibrator ${OpenCV_LIBS})

# install targets
install(TARGETS whycon DESTINATION lib)
install(TARGETS localization-system camera_calibrator DESTINATION bin)
install(FILES circle_detector.h config.h localization_system.h many_circle_detector.h DESTINATION include/whycon)
install(FILES cmake-configs/FindWhyCon.cmake cmake-configs/FindGSL.cmake DESTINATION share/cmake/Modules)
14 changes: 14 additions & 0 deletions cmake-configs/FindWhyCon.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
find_path(WHYCON_INCLUDE_DIRS whycon/localization_system.h PATH_SUFFIXES whycon HINTS ${CMAKE_CURRENT_LIST_DIR}/../../../include)
find_library(WHYCON_LIBRARIES NAMES whycon HINTS ${CMAKE_CURRENT_LIST_DIR}/../../../lib)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(whycon DEFAULT_MSG WHYCON_LIBRARIES WHYCON_INCLUDE_DIRS)

find_package(OpenCV REQUIRED)
find_package(GSL REQUIRED)
find_package(Boost COMPONENTS program_options thread system REQUIRED)

set(WHYCON_LIBRARIES ${WHYCON_LIBRARIES} ${OpenCV_LIBRARIES} ${GSL_LIBRARIES} ${Boost_LIBRARIES})
set(WHYCON_INCLUDE_DIRS ${WHYCON_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} ${GSL_INCLUDE_DIRS} ${Boost_INCLUDE_DIRS})

mark_as_advanced(WHYCON_LIBRARIES WHYCON_INCLUDE_DIRS)

0 comments on commit 48d8d30

Please sign in to comment.