Skip to content

Commit 9b7987d

Browse files
committed
Add minimal CMakeLists.txt for IDE integration
Introduce a basic CMake configuration to help developers and contributors import the project into IDEs and development tools that rely on CMake for code navigation and build setup. This CMake file is not intended as the primary method for building or testing the project; the official build remains defined by the Makefile. It serves only to improve development workflow and tooling support.
1 parent 0cfddea commit 9b7987d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Note: This is not the primary build system for the project.
2+
# The authoritative build and test configuration is defined in the Makefile.
3+
# This CMake file exists solely to support IDE integration and assist
4+
# contributors in importing the project into development environments.
5+
6+
cmake_minimum_required(VERSION 3.14)
7+
project(jurand CXX)
8+
9+
set(CMAKE_CXX_STANDARD 20)
10+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
11+
set(CMAKE_CXX_EXTENSIONS OFF)
12+
13+
add_compile_options(-Wall -Wextra -Wpedantic)
14+
15+
add_executable(jurand src/jurand.cpp)
16+
17+
enable_testing()
18+
add_executable(jurand_test src/jurand_test.cpp)
19+
add_test(NAME jurand_test COMMAND jurand_test)

0 commit comments

Comments
 (0)