-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
30 lines (20 loc) · 916 Bytes
/
CMakeLists.txt
File metadata and controls
30 lines (20 loc) · 916 Bytes
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
cmake_minimum_required(VERSION 3.2)
message(STATUS "Cmake version ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}")
project("simgrid_frankenstein")
add_definitions("-Wall -Wno-unused-variable -Wno-unused-private-field")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/")
set(CMAKE_BUILD_TYPE Debug)
find_package(SimGrid REQUIRED)
# include directories for dependencies and WRENCH libraries
include_directories(src/ ${SimGrid_INCLUDE_DIR}/include /usr/local/include /opt/local/include)
# source files
set(SOURCE_FILES
./main.cpp
)
# generating the executable
add_executable(simgrid_frankenstein ${SOURCE_FILES})
set_property(TARGET simgrid_frankenstein PROPERTY CXX_STANDARD 17)
target_link_libraries(simgrid_frankenstein
${SimGrid_LIBRARY}
)
install(TARGETS simgrid_frankenstein DESTINATION bin)