Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made the package work on ROS windows #115

Open
wants to merge 3 commits into
base: ros1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 19 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
cmake_minimum_required(VERSION 2.8.3)
project(web_video_server)

if(MSVC)
add_definitions(-D_WIN32_WINNT=0x0A00)
endif()
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS roscpp roslib cv_bridge image_transport async_web_server_cpp sensor_msgs)
find_package(OpenCV REQUIRED)
find_package(Boost REQUIRED COMPONENTS thread)

find_package(PkgConfig REQUIRED)
pkg_check_modules(avcodec libavcodec REQUIRED)
pkg_check_modules(avformat libavformat REQUIRED)
pkg_check_modules(avutil libavutil REQUIRED)
pkg_check_modules(swscale libswscale REQUIRED)
if(MSVC)
find_path( avcodec_INCLUDE_DIRS libavcodec/avcodec.h )
find_library( avcodec_LIBRARIES avcodec )
find_path( avformat_INCLUDE_DIRS libavformat/avformat.h )
find_library( avformat_LIBRARIES avformat )
find_path( avutil_INCLUDE_DIRS libavutil/avutil.h )
find_library( avutil_LIBRARIES avutil )
find_path( swscale_INCLUDE_DIRS libswscale/swscale.h )
find_library( swscale_LIBRARIES swscale )
else()
find_package(PkgConfig REQUIRED)
pkg_check_modules(avcodec libavcodec REQUIRED)
pkg_check_modules(avformat libavformat REQUIRED)
pkg_check_modules(avutil libavutil REQUIRED)
pkg_check_modules(swscale libswscale REQUIRED)
endif()

###################################################
## Declare things to be passed to other projects ##
Expand Down