mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-10 05:57:14 +08:00
enable cmake in subfolders of data_structures
This commit is contained in:
5
data_structures/queue/CMakeLists.txt
Normal file
5
data_structures/queue/CMakeLists.txt
Normal file
@@ -0,0 +1,5 @@
|
||||
add_executable( test_queue
|
||||
queue.cpp
|
||||
test_queue.cpp
|
||||
)
|
||||
install(TARGETS test_queue DESTINATION "bin/data_structures")
|
||||
@@ -1,11 +0,0 @@
|
||||
CC= g++
|
||||
CFLAGS = -c -Wall
|
||||
|
||||
all: test_queue
|
||||
queue.o: queue.cpp
|
||||
$(CC) $(CFLAGS) queue.cpp
|
||||
test_queue: queue.o
|
||||
$(CC) test_queue.cpp queue.o -o queue
|
||||
|
||||
clean:
|
||||
rm *o queue
|
||||
Reference in New Issue
Block a user