Update project info
This commit is contained in:
parent
be49470a72
commit
89f614e6f3
7 changed files with 44 additions and 4 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
build
|
18
CMakeLists.txt
Normal file
18
CMakeLists.txt
Normal file
|
@ -0,0 +1,18 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
# Set the project name
|
||||
project(ac VERSION 1.0 LANGUAGES CXX)
|
||||
|
||||
# Set the C++ standard
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED True)
|
||||
|
||||
# Add source files
|
||||
file(GLOB SOURCES "src/*.cpp")
|
||||
|
||||
# Add an executable target
|
||||
add_executable(ac ${SOURCES})
|
||||
|
||||
# Optionally, if you have any additional include directories or libraries, add them here:
|
||||
# target_include_directories(ac PRIVATE ${CMAKE_SOURCE_DIR}/include)
|
||||
# target_link_libraries(ac PRIVATE some_library)
|
24
Makefile
Normal file
24
Makefile
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Compiler and flags
|
||||
CXX = g++
|
||||
CXXFLAGS = -std=c++17 -Wall -Wextra
|
||||
|
||||
# Source files and target executable
|
||||
SRCS = $(wildcard src/*.cpp)
|
||||
OBJS = $(SRCS:.cpp=.o)
|
||||
TARGET = ac
|
||||
|
||||
# Build target
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJS)
|
||||
$(CXX) $(CXXFLAGS) -o $@ $(OBJS)
|
||||
|
||||
# Build object files
|
||||
%.o: %.cpp
|
||||
$(CXX) $(CXXFLAGS) -c $< -o $@
|
||||
|
||||
# Clean up build artifacts
|
||||
clean:
|
||||
rm -f $(TARGET) $(OBJS)
|
||||
|
||||
.PHONY: all clean
|
|
@ -1,4 +0,0 @@
|
|||
|
||||
project(aria)
|
||||
|
||||
add_library(aria SHARED Progress.cpp Progress.h)
|
1
src/CMakeLists.txt
Normal file
1
src/CMakeLists.txt
Normal file
|
@ -0,0 +1 @@
|
|||
add_library(ac SHARED Progress.cpp Progress.h)
|
Loading…
Reference in a new issue