1234567891011121314151617181920 |
- cmake_minimum_required(VERSION 2.8.3)
- project(plc_proc)
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
- set(CMAKE_INCLUDE_CURRENT_DIR ON)
- set(CMAKE_BUILD_TYPE Debug)
- include_directories ("/home/youchen/Documents/modbus_test/include/")
- include_directories ("/usr/local/include/modbus/")
- include_directories ("/opt/ros/melodic/include/")
- include_directories ("/usr/include/eigen3/")
- link_directories ("/usr/local/lib")
- set(LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/libs)
- set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/libs)
- set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
- #add_executable(plc_proc src/PLCProcess.cpp src/PLCModbus.cpp)
- add_executable(plc_proc src/plc_test.cpp src/PLCModbus.cpp)
- target_link_libraries(plc_proc modbus)
|