This repository has been archived by the owner on Apr 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (46 loc) · 2.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
cmake_minimum_required(VERSION 3.23)
project(tsp C)
set(CMAKE_C_STANDARD 99)
find_package(OpenCL REQUIRED)
include_directories(${OpenCL_INCLUDE_DIRS})
link_directories(${OpenCL_LIBRARY})
add_executable(v1 v1.c)
target_include_directories(v1 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v1 ${OpenCL_LIBRARY})
add_executable(v1.1 v1.1.c)
target_include_directories(v1.1 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v1.1 ${OpenCL_LIBRARY})
add_executable(v1.1.1 v1.1.1.c)
target_include_directories(v1.1.1 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v1.1.1 ${OpenCL_LIBRARY})
add_executable(v1.1.2 v1.1.2.c)
target_include_directories(v1.1.2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v1.1.2 ${OpenCL_LIBRARY})
add_executable(v1.1.3 v1.1.3.c)
target_include_directories(v1.1.3 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v1.1.3 ${OpenCL_LIBRARY})
add_executable(v1.2 v1.2.c)
target_include_directories(v1.2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v1.2 ${OpenCL_LIBRARY})
add_executable(v1.2.1 v1.2.1.c)
target_include_directories(v1.2.1 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v1.2.1 ${OpenCL_LIBRARY})
add_executable(v2 v2.c)
target_include_directories(v2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v2 ${OpenCL_LIBRARY})
add_executable(v2.1 v2.1.c)
target_include_directories(v2.1 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v2.1 ${OpenCL_LIBRARY})
add_executable(v2.2 v2.2.c)
target_include_directories(v2.2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v2.2 ${OpenCL_LIBRARY})
add_executable(v3 v3.c)
target_include_directories(v3 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(v3 ${OpenCL_LIBRARY})
add_executable(list list.c)
target_include_directories(list PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(list ${OpenCL_LIBRARY})
add_executable(main tsp.c)
target_include_directories(main PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(main ${OpenCL_LIBRARY})
add_executable(test test.c)