cmake_minimum_required (VERSION 2.6) project (OCULite) set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib) set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin) set(ROBODEVEL_DIR ${OCULite_SOURCE_DIR}/../RoboDevel CACHE STRING "Location of the compiled RoboDevel.(only compiled RHexLib is needed)" ) set(RHEXLIB_DIR ${ROBODEVEL_DIR}/Libraries/RHexLib) link_directories( ${RHEXLIB_DIR}/lib) include_directories( ${ROBODEVEL_DIR}/RHex/RobotCode/Behaviors/include ${RHEXLIB_DIR}/include ${RHEXLIB_DIR}/libutils/include ${RHEXLIB_DIR}/Behaviors/include ${OCULite_SOURCE_DIR} ${OCULite_SOURCE_DIR}/include ) add_library (oculite SHARED OCULite.cpp UnderwaterMode.cpp WalkingMode.cpp ) #target_link_libraries(oculite pthread base utils boost_system) #add_library (oculite OCULite.cpp UnderwaterMode.cpp WalkingMode.cpp uOLEDDriver.cpp) add_executable(oculite_test OCULiteTest.cpp) #add_executable(nicotest nicotest.cpp) target_link_libraries(oculite_test oculite pthread base utils) #target_link_libraries(nicotest oculite pthread rhex_base rhex_utils boost_system) #add_library (uOLEDDriver uOLEDDriver.cpp) #target_link_libraries(uOLEDDriver boost_system) # uOLED driver test code. #add_executable( oled TestOLED.cc uOLEDDriver.cpp ) #target_link_libraries( oled boost_system) #add_executable(motion_test motion_test.cpp) #target_link_libraries(motion_test oculite pthread rhex_base rhex_utils boost_system) #add_executable(depth_test depth_test.cpp uOLEDDriver.cpp) #target_link_libraries(depth_test oculite pthread rhex_base rhex_utils boost_system) #add_executable(oled_cout oled_cout.cpp uOLEDDriver.cpp) #target_link_libraries(oled_cout oculite pthread rhex_base rhex_utils boost_system)