forked from l3nkz/eteam-rt
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
50 lines (39 loc) · 996 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
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
project(eteam-rt)
# At least require cmake version 3.2
cmake_minimum_required(VERSION 3.2)
# Define which directories to use for libraries and executables
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
# Generate the compilation database by default -- comment out if not desired
set(CMAKE_EXPORT_COMPILE_COMMANDS On)
# the eteam library
add_library(eteam
src/eteam.cc
)
target_include_directories(eteam
PUBLIC include
)
# energy measurement tool
add_executable(energy
src/process.cc
src/measure.cc
src/execute.cc
src/energy.cc
src/main.cc
)
target_include_directories(energy
PUBLIC include
)
target_link_libraries(energy
eteam
)
# Installing targets
install(TARGETS eteam
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
INCLUDES DESTINATION include
)
install(TARGETS energy
RUNTIME DESTINATION bin
)