Skip to content

Commit 1e3ddde

Browse files
authored
Merge pull request #17 from grqx/patch-1
[build] search for src automatically
2 parents 62ed233 + e85b5f9 commit 1e3ddde

File tree

1 file changed

+2
-27
lines changed

1 file changed

+2
-27
lines changed

CMakeLists.txt

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,33 +7,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
77
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall -O2")
88
include_directories(${PROJECT_SOURCE_DIR})
99

10-
add_executable(OJ
11-
APIProceed.cpp
12-
Database.cpp
13-
EmailVerificationCodes.cpp
14-
Exception.cpp
15-
Files.cpp
16-
HTTPRequest.cpp
17-
HTTPResponse.cpp
18-
JudgingList.cpp
19-
Logger.cpp
20-
Passkey.cpp
21-
Problem.cpp
22-
Problems.cpp
23-
Regexes.cpp
24-
Settings.cpp
25-
Socket.cpp
26-
Submission.cpp
27-
Submissions.cpp
28-
TempTestData.cpp
29-
TestCase.cpp
30-
TestGroup.cpp
31-
TestGroupData.cpp
32-
Tokens.cpp
33-
Users.cpp
34-
Utilities.cpp
35-
WebDataProceed.cpp
36-
main.cpp)
10+
file(GLOB SRCS CONFIGURE_DEPENDS *.cpp)
11+
add_executable(OJ ${SRCS})
3712

3813
set(LIBS
3914
pthread

0 commit comments

Comments
 (0)