Advertisement
1fractal

Untitled

Dec 31st, 2020
1,725
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmake_minimum_required(VERSION 3.17)
  2. project(projetSDA_C__)
  3.  
  4. set(CMAKE_CXX_STANDARD 20)
  5.  
  6. #uncomment for debug
  7. #@debug
  8. # SET(GCC_COVERAGE_COMPILE_FLAGS "-DDEBUG")
  9. SET(GCC_COVERAGE_LINK_FLAGS    "")
  10.  
  11. file(GLOB_RECURSE src ${CMAKE_SOURCE_DIR}/src/*.cpp)
  12. include_directories(${CMAKE_SOURCE_DIR}/src/include)
  13.  
  14.  
  15.  
  16. SET(CMAKE_CXX_FLAGS  "${CMAKE_CXX_FLAGS} ${GCC_COVERAGE_COMPILE_FLAGS}")
  17. SET(CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} ${GCC_COVERAGE_LINK_FLAGS}")
  18.  
  19.  
  20. add_executable(projetSDA_C__ main.cpp ${src})
  21. add_executable(projetSDA_C__Test test.cpp ${src})
  22.  
  23. target_link_libraries(projetSDA_C__ pthread)
  24. target_link_libraries(projetSDA_C__Test pthread)
Advertisement
RAW Paste Data Copied
Advertisement