Skip to content

Instantly share code, notes, and snippets.

@Fiona-J-W
Created June 22, 2023 21:01
Show Gist options
  • Save Fiona-J-W/f5ea556d6b8ece13c14e09ef13a215b3 to your computer and use it in GitHub Desktop.
Save Fiona-J-W/f5ea556d6b8ece13c14e09ef13a215b3 to your computer and use it in GitHub Desktop.
project(project-name)
cmake_minimum_required(VERSION 3.11)
file(GLOB headers "src/*.hpp")
file(GLOB sources "src/*cpp")
add_executable(target-name ${headers} ${sources})
target_compile_features(target-name PUBLIC cxx_std_20)
#target_link_libraries(target-name deps)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment