]> git.mcshandy.xyz Git - barrow_crawler/commitdiff
Introduce cmake
authorRandy McShandy <randy@mcshandy.xyz>
Sun, 28 Apr 2024 16:14:42 +0000 (11:14 -0500)
committerRandy McShandy <randy@mcshandy.xyz>
Sun, 28 Apr 2024 16:14:42 +0000 (11:14 -0500)
CMakeLists.txt [new file with mode: 0644]

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..e1aa6ad
--- /dev/null
@@ -0,0 +1,11 @@
+cmake_minimum_required(VERSION 3.10)
+project(
+       Barrow_Crawler
+       LANGUAGES C
+)
+
+set(CMAKE_C_COMPILER gcc)
+FILE(GLOB POSIX_SRC *.c)
+add_executable(posix_BC ${POSIX_SRC})
+target_compile_definitions(posix_BC PUBLIC POSIX_BC=1)
+target_link_libraries(posix_BC -lm -lpthread)