inital commit 1
This commit is contained in:
commit
07738cacaf
76 files changed
+9477
No files matched your search
@@ -0,0 +1,17 @@
|
||||
cmake_minimum_required(VERSION 2.5)
|
||||
project(judger C)
|
||||
|
||||
#set(CMAKE_VERBOSE_MAKEFILE ON)
|
||||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/output)
|
||||
|
||||
set(CMAKE_C_FLAGS "-g -Wall -Werror -O3 -std=c99 -pie -fPIC")
|
||||
|
||||
# make judger lib
|
||||
file(GLOB SOURCE "src/*.c" "src/rules/*.c")
|
||||
add_executable(libjudger.so ${SOURCE})
|
||||
target_link_libraries(libjudger.so pthread seccomp)
|
||||
|
||||
|
||||
install(FILES output/libjudger.so
|
||||
PERMISSIONS OWNER_EXECUTE OWNER_READ
|
||||
DESTINATION /usr/lib/judger)
|
||||
Reference in new issue
Block a user