forked from fmoessbauer/drace
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathCMakeLists.txt
27 lines (22 loc) · 932 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
# DRace, a dynamic data race detector
#
# Copyright (c) Siemens AG, 2019
#
# Authors:
# Felix Moessbauer <[email protected]>
#
# This work is licensed under the terms of the MIT license. See
# the LICENSE file in the top-level directory.
if(WIN32)
find_package(PyInstaller)
if(PyInstaller_FOUND)
message(STATUS "ReportConverter: Create self-contained binary")
add_pi_executable(ReportConverter ReportConverter.py)
file(COPY "resources" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ReportConverter.exe DESTINATION ${DRACE_RUNTIME_DEST})
endif()
endif()
file(COPY "ReportConverter.py" DESTINATION "${CMAKE_CURRENT_BINARY_DIR}")
# Install report converter
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/ReportConverter.py DESTINATION ${DRACE_RUNTIME_DEST})
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/resources/ DESTINATION resources)