- Created cxxopts-config.cmake.in for CMake configuration. - Added pkgconfig.pc.in for pkg-config integration. - Introduced CMakeLists.txt for building example application. - Implemented example.cpp demonstrating cxxopts usage. - Updated main.cpp to utilize cxxopts for command line argument parsing.
15 lines
225 B
Makefile
15 lines
225 B
Makefile
CXX = g++
|
|
CXXFLAGS = -std=c++17 -Wall -Icxxopts/include
|
|
SRC = src/main.cpp
|
|
BIN = jigsaw
|
|
OUT = out
|
|
|
|
all: $(OUT)/$(BIN)
|
|
|
|
$(OUT)/$(BIN): $(SRC)
|
|
mkdir -p $(OUT)
|
|
$(CXX) $(CXXFLAGS) $(SRC) -o $(OUT)/$(BIN)
|
|
|
|
clean:
|
|
rm -rf $(OUT)
|