-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
38 lines (27 loc) · 988 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
cmake_minimum_required(VERSION 3.27)
project(Calc)
# Set C++ standard (e.g., C++17)
set(CMAKE_CXX_STANDARD 17)
# Add the executable
add_executable(Calc
src/main.cpp
)
# You can add more source files as your project grows.
# Include directories
target_include_directories(Calc PRIVATE include)
# Link any additional libraries if needed
# target_link_libraries(Calc your_additional_libraries)
# Copy data files to the build directory
# Set the output directory for executables
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_BINARY_DIR}/bin)
# Optional: Set the build type (Release or Debug)
# set(CMAKE_BUILD_TYPE Release)
# Optional: Compiler-specific flags
# add_compile_options(-Wall -Wextra)
# Optional: Find and link external libraries (e.g., for JSON parsing)
find_package(Curses REQUIRED)
include_directories(${CURSES_INCLUDE_DIR})
# find_package(YourLibrary REQUIRED)
# target_link_libraries(Calc YourLibrary)
# Optional: Install targets
# install(TARGETS Calc DESTINATION bin)