Skip to content
Snippets Groups Projects
Select Git revision
  • 9b3793db775e25a788b084c9d474413279322b3b
  • main default
2 results

CMakeLists.txt

Blame
  • CMakeLists.txt 581 B
    CMAKE_MINIMUM_REQUIRED(VERSION 3.14)
    project (class_server)
    
    include_directories(include ${Boost_INCLUDE_DIRS} ${YAML_INCLUDE_DIR})
    
    add_executable(${PROJECT_NAME} src/class_server_main.cpp src/class_server.cpp)
    target_link_libraries(${PROJECT_NAME} logger communication  yaml_tools yaml-cpp ${Boost_LIBRARIES})
    
    add_executable(class_client src/class_client_example.cpp)
    target_link_libraries(class_client logger communication  yaml_tools yaml-cpp ${Boost_LIBRARIES})
    
    
    # 'make install' to the correct location
    install(TARGETS ${PROJECT_NAME}
       RUNTIME  DESTINATION class_server)