mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-27 15:31:41 +00:00
72a387336a
add tests
18 lines
485 B
CMake
18 lines
485 B
CMake
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)
|