Guest User

Untitled

a guest
Oct 17th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.86 KB | None | 0 0
  1.  
  2. cmake_minimum_required(VERSION 2.4.6)
  3.  
  4. #set the default path for built executables to the "bin" directory
  5. set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
  6. #set the default path for built libraries to the "lib" directory
  7. set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)
  8.  
  9. include_directories( "include/" )
  10. include_directories( "eigen/" )
  11.  
  12. #link_directories( ${PROJECT_SOURCE_DIR}/lib )
  13.  
  14. # Make the external lwr_policy lib
  15. add_library(lwr_policy
  16.     src/lwr_parameters.cpp
  17.     src/policy.cpp
  18.     src/lwr_policy.cpp
  19.     src/lwr_model.cpp
  20. )
  21.  
  22. FIND_PACKAGE(Boost COMPONENTS filesystem)
  23. FIND_PACKAGE(gtest)
  24.  
  25. target_link_libraries(lwr_policy gtest)
  26. target_link_libraries(lwr_policy boost_filesystem)
  27.  
  28. # Make the test program for the external lib
  29. #add_executable(lwr_test
  30. #  test/lwr_policy_test.cpp
  31. #)
  32.  
  33. #target_link_libraries(lwr_test lwr_policy)
Add Comment
Please, Sign In to add comment