Skip to content

Commit

Permalink
update CMakeLists.txt for Windows build environment (ros-perception#265)
Browse files Browse the repository at this point in the history
* windows bringup

* Correct binary locations for shared libraries.

* fix build break.

* fix cv_bridge_boost.pyd.

* remove hard-coded STATIC (ros-perception#3)

* remove WINDOWS_EXPORT_ALL_SYMBOLS property (ros-perception#4)

* add comment

Co-authored-by: shschaefer <[email protected]>
Co-authored-by: Sean Yen <[email protected]>
  • Loading branch information
3 people authored Mar 28, 2020
1 parent ace8c78 commit 578af4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions cv_bridge/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,17 @@ target_link_libraries(${PROJECT_NAME}_boost ${Boost_LIBRARIES}

set_target_properties(${PROJECT_NAME}_boost PROPERTIES
LIBRARY_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_PYTHON_DESTINATION}/${PROJECT_NAME}/boost/
RUNTIME_OUTPUT_DIRECTORY ${CATKIN_DEVEL_PREFIX}/${CATKIN_GLOBAL_PYTHON_DESTINATION}/${PROJECT_NAME}/boost/
PREFIX ""
)
if(APPLE)
set_target_properties(${PROJECT_NAME}_boost PROPERTIES
SUFFIX ".so")
endif()
if(MSVC)
set_target_properties(${PROJECT_NAME}_boost PROPERTIES
SUFFIX ".pyd")
endif()

install(TARGETS ${PROJECT_NAME}_boost DESTINATION ${CATKIN_PACKAGE_PYTHON_DESTINATION}/boost/)
endif()
3 changes: 2 additions & 1 deletion image_geometry/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}/
)

# install library
install(TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)

# add tests
Expand Down

0 comments on commit 578af4d

Please sign in to comment.