Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.0.0)
  2. project(agence VERSION 0.0.0)
  3. include(CMakeToolsHelpers OPTIONAL)
  4.  
  5. include(CTest)
  6. enable_testing()
  7.  
  8. add_compile_options("-Wall" "--std=c++17")
  9.  
  10. file(GLOB SRC "src/*.cpp")
  11. list(REMOVE_ITEM SRC ${CMAKE_SOURCE_DIR}/src/main.cpp)
  12. include_directories("include")
  13. add_executable(agence ${SRC} src/main.cpp)
  14. add_executable(test1 ${SRC} test/test.cpp)
  15. add_test(test1 test1)
  16.  
  17. set(CPACK_PROJECT_NAME ${PROJECT_NAME})
  18. set(CPACK_PROJECT_VERSION ${PROJECT_VERSION})
  19. include(CPack)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement