Advertisement
Guest User

Untitled

a guest
Oct 31st, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 0.56 KB | None | 0 0
  1. cmake_minimum_required (VERSION 3.0)
  2. project (Program)
  3.  
  4. # Version message
  5. message("Using CMake version ${CMAKE_VERSION}")
  6. message("Processing CMakeLists.txt")
  7.  
  8. # Compiler version
  9. set (CMAKE_CXX_STANDARD 17)
  10.  
  11. # Define sources
  12. file(GLOB_RECURSE SRCS
  13.   "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h"
  14.   "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp"
  15. )
  16.  
  17. # Define executable and link all sources
  18. set(EXECUTABLE_NAME "out")
  19. add_executable(${EXECUTABLE_NAME} ${SRCS})
  20.  
  21. # Link libraries so that they can be used in the project
  22. target_link_libraries(${EXECUTABLE_NAME}
  23. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement