-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
40 lines (28 loc) · 1.04 KB
/
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
project(linkedlist)
cmake_minimum_required(VERSION 3.7)
set(SHARED_SOURCE_FILES
linkedlist.h
listbench.c
)
set(SOURCE_FILES
linkedlist.c
${SHARED_SOURCE_FILES}
)
set(CMAKE_C_FLAGS "-fopenmp")
link_libraries(atomic)
add_executable(ldraconic ${SOURCE_FILES})
target_compile_definitions(ldraconic PUBLIC TEXTBOOK)
add_executable(lsingly ${SOURCE_FILES})
target_compile_definitions(lsingly PUBLIC "")
add_executable(ldoubly ${SOURCE_FILES})
target_compile_definitions(ldoubly PUBLIC DOUBLY)
add_executable(ldoubly_cursor ${SOURCE_FILES})
target_compile_definitions(ldoubly_cursor PUBLIC DOUBLY CURSOR)
add_executable(lsingly_cursor ${SOURCE_FILES})
target_compile_definitions(lsingly_cursor PUBLIC CURSOR)
add_executable(lsingly_cursor_fetch ${SOURCE_FILES})
target_compile_definitions(lsingly_cursor_fetch PUBLIC CURSOR FETCH)
#add_executable(lprivate ${SOURCE_FILES})
#target_compile_definitions(lprivate PUBLIC PRIVATE)
#add_executable(lsequential linkedlistseq.c ${SHARED_SOURCE_FILES})
#target_compile_definitions(lsequential PUBLIC PRIVATE)