forked from HEPCompSim/DCSim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
81 lines (67 loc) · 2.42 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
cmake_minimum_required(VERSION 3.2)
message(STATUS "Cmake version ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}")
project(DCSim)
add_definitions("-Wall -Wno-unused-variable -Wno-unused-private-field")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
find_package(SimGrid REQUIRED)
find_package(Boost COMPONENTS program_options regex REQUIRED)
# include directories for dependencies and WRENCH libraries
include_directories(src/ ${SimGrid_INCLUDE_DIR}/include /usr/local/include /opt/local/include /usr/local/include/wrench ${Boost_INCLUDE_DIR})
# source files
set(SOURCE_FILES
src/WorkloadExecutionController.h
src/WorkloadExecutionController.cpp
src/SimpleSimulator.h
src/SimpleSimulator.cpp
src/JobSpecification.h
src/Workload.h
src/Workload.cpp
src/LRU_FileList.h
src/MonitorAction.h
src/MonitorAction.cpp
src/util/DefaultValues.h
src/util/Utils.h
src/computation/CacheComputation.h
src/computation/CacheComputation.cpp
src/computation/StreamedComputation.h
src/computation/StreamedComputation.cpp
src/computation/CopyComputation.h
src/computation/CopyComputation.cpp
)
# test files
set(TEST_FILES
src/JobSpecification.h
src/MonitorAction.h
src/util/DefaultValues.h
src/util/Utils.h
src/computation/CacheComputation.h
src/computation/StreamedComputation.h
src/computation/CopyComputation.h
src/LRU_FileList.h
src/SimpleSimulator.h
src/WorkloadExecutionController.h
src/Workload.h
)
# wrench library and dependencies
find_library(WRENCH_LIBRARY NAMES wrench)
find_library(SimGrid_LIBRARY NAMES simgrid)
# generating the executable
add_executable(dc-sim ${SOURCE_FILES})
if (ENABLE_BATSCHED)
target_link_libraries(dc-sim
${WRENCH_LIBRARY}
${SimGrid_LIBRARY}
${Boost_LIBRARIES}
-lzmq )
else()
target_link_libraries(dc-sim
${WRENCH_LIBRARY}
${SimGrid_LIBRARY}
${Boost_LIBRARIES}
)
endif()
# set_property(TARGET dc-sim PROPERTY CXX_STANDARD 17)
install(TARGETS dc-sim DESTINATION bin)