-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
24 lines (16 loc) · 869 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required (VERSION 3.11)
project (MIMUW-PW-lockfree C)
set(THREADS_PREFER_PTHREAD_FLAG TRUE) # prefer -pthread to -lphtread
find_package (Threads REQUIRED)
set(CMAKE_C_STANDARD 17)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_VERBOSE_MAKEFILE ON CACHE BOOL "ON" FORCE)
set(CMAKE_C_FLAGS "-Wall -Wextra -Wpedantic -Wno-sign-compare -Wno-unused-parameter -O3 -march=native -fno-exceptions")
# add_compile_options(-fsanitize=thread -Og -g)
# add_link_options(-fsanitize=thread -Og -g)
# add_compile_options(-fsanitize=address -Og -g)
# add_link_options(-fsanitize=address -Og -g)
add_library(queues OBJECT SimpleQueue.c RingsQueue.c LLQueue.c BLQueue.c HazardPointer.c)
target_link_libraries(queues PRIVATE Threads::Threads atomic)
add_executable(simpleTester simpleTester.c)
target_link_libraries(simpleTester PRIVATE queues Threads::Threads atomic)