mirror of
https://github.com/lisk77/lambda.git
synced 2025-10-24 02:08:49 +00:00
feat: initial commit
This commit is contained in:
commit
0dd91da74f
17 changed files with 683 additions and 0 deletions
24
CMakeLists.txt
Normal file
24
CMakeLists.txt
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(lambda VERSION 1.0 LANGUAGES CXX)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
# 1) gather all your .cpp files
|
||||
file(GLOB_RECURSE PROJECT_SOURCES
|
||||
${PROJECT_SOURCE_DIR}/src/*.cpp
|
||||
)
|
||||
|
||||
# sanity check
|
||||
if(NOT PROJECT_SOURCES)
|
||||
message(FATAL_ERROR "No .cpp files found in src/")
|
||||
endif()
|
||||
|
||||
# 2) create the executable from those sources
|
||||
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})
|
||||
|
||||
# 3) point it at your headers
|
||||
target_include_directories(${PROJECT_NAME}
|
||||
PRIVATE ${PROJECT_SOURCE_DIR}/include
|
||||
)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue