added cmake

This commit is contained in:
wt
2026-04-08 15:18:50 +07:00
parent 942e4e2dc1
commit 54a89de56c
10 changed files with 70 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
cmake_minimum_required (VERSION 3.6)
project(leetcode)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
add_subdirectory(maxprofit)
add_subdirectory(rotate)
add_subdirectory(majorityelement)
add_subdirectory(twopointers)
add_subdirectory(rmdupfromsortedarray)
add_subdirectory(rmdupfromsortedarray2)
add_subdirectory(maxprofit2)
add_subdirectory(canJump)
add_subdirectory(jump)
+6
View File
@@ -0,0 +1,6 @@
FILE(GLOB_RECURSE SOURCES src/*.cpp)
add_executable(
canJump
${SOURCES}
)
+6
View File
@@ -0,0 +1,6 @@
FILE(GLOB_RECURSE SOURCES src/*.cpp)
add_executable(
jump
${SOURCES}
)
+6
View File
@@ -0,0 +1,6 @@
FILE(GLOB_RECURSE SOURCES src/*.cpp)
add_executable(
majorityelement
${SOURCES}
)
+6
View File
@@ -0,0 +1,6 @@
FILE(GLOB_RECURSE SOURCES src/*.cpp)
add_executable(
maxprofit
${SOURCES}
)
+6
View File
@@ -0,0 +1,6 @@
FILE(GLOB_RECURSE SOURCES src/*.cpp)
add_executable(
maxprofit2
${SOURCES}
)
+6
View File
@@ -0,0 +1,6 @@
FILE(GLOB_RECURSE SOURCES src/*.cpp)
add_executable(
rmdupfromsortedarray
${SOURCES}
)
+6
View File
@@ -0,0 +1,6 @@
FILE(GLOB_RECURSE SOURCES src/*.cpp)
add_executable(
rmdupfromsortedarray2
${SOURCES}
)
+6
View File
@@ -0,0 +1,6 @@
FILE(GLOB_RECURSE SOURCES src/*.cpp)
add_executable(
rotate
${SOURCES}
)
+6
View File
@@ -0,0 +1,6 @@
FILE(GLOB_RECURSE SOURCES src/*.cpp)
add_executable(
twopointers
${SOURCES}
)