Advertisement
RedWheelBarrow

cppserial

Oct 16th, 2022 (edited)
1,284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.42 KB | Source Code | 0 0
  1. cmake_minimum_required(VERSION 3.8)
  2.  
  3. project(cppserial)
  4.  
  5. set(CMAKE_CXX_STANDARD 20)
  6. set(CMAKE_CXX_STANDARD_REQUIRED ON)
  7.  
  8. set(SOURCE  src/cppserial/serializable.h
  9.             src/cppserial/serializer.h
  10. )
  11.  
  12. add_library(${PROJECT_NAME} STATIC ${SOURCE})
  13.  
  14. add_subdirectory(libs/cppstreams)
  15. target_link_libraries(${PROJECT_NAME} PUBLIC cppstreams)
  16.  
  17. target_include_directories(${PROJECT_NAME} PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement