mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
16 lines
390 B
Text
16 lines
390 B
Text
![]() |
cmake_minimum_required(VERSION 3.10)
|
||
|
|
||
|
# Set the project name and version
|
||
|
project(SimpleProject VERSION 1.0)
|
||
|
|
||
|
set(CMAKE_EXPORT_COMPILE_COMMANDS "true")
|
||
|
|
||
|
# Configuration header
|
||
|
configure_file(simple.h.in simple.h)
|
||
|
|
||
|
# Add project executable
|
||
|
add_executable(${PROJECT_NAME} simple.c)
|
||
|
|
||
|
# Include the configuration header
|
||
|
target_include_directories(${PROJECT_NAME} PUBLIC "${PROJECT_BINARY_DIR}")
|