19 lines
372 B
Plaintext
19 lines
372 B
Plaintext
|
snippet base "Cmake Init" b
|
||
|
cmake_minimum_required(VERSION ${1:3.12})
|
||
|
project(${2:${VISUAL:project}})
|
||
|
|
||
|
# Generate compile_commands.json
|
||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
||
|
|
||
|
# Dependencies
|
||
|
# find_package(package 0.0.1 REQUIRED)
|
||
|
|
||
|
# Project configurations
|
||
|
add_executable(${PROJECT_NAME})
|
||
|
add_subdirectory(src)
|
||
|
|
||
|
# target_link_libraries(${PROJECT_NAME} package)
|
||
|
|
||
|
endsnippet
|
||
|
|