Fixed VS folder

release/4.3a0
Richard Roberts 2013-07-01 20:19:26 +00:00
parent d7767188b3
commit 88f906e3d5
1 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,10 @@ gtsam_assign_source_folders(${wrap_srcs} ${wrap_headers})
add_executable(wrap wrap.cpp)
target_link_libraries(wrap wrap_lib ${WRAP_BOOST_LIBRARIES})
# Set folder in Visual Studio
file(RELATIVE_PATH relative_path "${PROJECT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
set_target_properties(wrap_lib wrap PROPERTIES FOLDER "${relative_path}")
# Install wrap binary and export target
if (GTSAM_INSTALL_WRAP)
install(TARGETS wrap EXPORT GTSAM-exports DESTINATION bin)