Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required (VERSION 3.0)
- project (Program)
- # Version message
- message("Using CMake version ${CMAKE_VERSION}")
- message("Processing CMakeLists.txt")
- # Compiler version
- set (CMAKE_CXX_STANDARD 17)
- # Define sources
- file(GLOB_RECURSE SRCS
- "${CMAKE_CURRENT_SOURCE_DIR}/src/*.h"
- "${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp"
- )
- # Define executable and link all sources
- set(EXECUTABLE_NAME "out")
- add_executable(${EXECUTABLE_NAME} ${SRCS})
- # Link libraries so that they can be used in the project
- target_link_libraries(${EXECUTABLE_NAME}
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement