-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
538 lines (442 loc) · 18.8 KB
/
Copy pathCMakeLists.txt
File metadata and controls
538 lines (442 loc) · 18.8 KB
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
# ----------------------------------------------------------------------------
# Title : ROGUE CMAKE Control
# ----------------------------------------------------------------------------
# This file is part of the rogue software package. It is subject to
# the license terms in the LICENSE.txt file found in the top-level directory
# of this distribution and at:
# https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html.
# No part of the rogue software package, including this file, may be
# copied, modified, propagated, or distributed except according to the terms
# contained in the LICENSE.txt file.
# ----------------------------------------------------------------------------
# See notes for compiling on macros under miniforge:
# https://conda.io/docs/user-guide/tasks/build-packages/compiler-tools.html
# Add support for building in conda environment
if (DEFINED ENV{CONDA_PREFIX})
set(CMAKE_PREFIX_PATH "$ENV{CONDA_PREFIX}")
link_directories($ENV{CONDA_PREFIX}/lib)
set(Python3_ROOT_DIR "$ENV{CONDA_PREFIX}")
set(Python3_FIND_FRAMEWORK NEVER)
endif()
# Check cmake version
cmake_minimum_required(VERSION 3.19)
include(InstallRequiredSystemLibraries)
# CMake policy compatibility:
# - CMP0144: honor upper-case <PACKAGENAME>_ROOT variables in find_package.
# - CMP0167: keep FindBoost module behavior for the current Boost discovery flow.
if(POLICY CMP0144)
cmake_policy(SET CMP0144 NEW)
endif()
if(POLICY CMP0167)
cmake_policy(SET CMP0167 OLD)
endif()
# Set default release type
if (NOT EXISTS ${CMAKE_BINARY_DIR}/CMakeCache.txt)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
endif()
endif()
# Project name
project (rogue)
option(ROGUE_BUILD_TESTS "Build Rogue native C++ tests" OFF)
option(ROGUE_COVERAGE "Build rogue-core with gcov instrumentation (CI only)" OFF)
option(NO_ROCEV2 "Disable RoCEv2 / libibverbs support" OFF)
option(ROGUE_SKIP_PIP_INSTALL "Skip the cmake-driven pip install of the python package (for packaging systems that install it themselves into DESTDIR)" OFF)
# Current Apple support target is arm64 only.
if (APPLE AND NOT ((CMAKE_SYSTEM_PROCESSOR STREQUAL "arm64") OR (CMAKE_SYSTEM_PROCESSOR STREQUAL "aarch64")))
message(FATAL_ERROR "macOS builds are only supported on arm64")
endif()
#####################################
# RoCEv2 / libibverbs (Linux only, optional via -DNO_ROCEV2=ON)
#####################################
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
add_definitions(-DROGUE_LINUX_BUILD)
if (NOT NO_ROCEV2)
find_library(IBVERBS_LIBRARY NAMES ibverbs)
find_path(IBVERBS_INCLUDE_DIR NAMES infiniband/verbs.h)
if ((NOT IBVERBS_LIBRARY) OR (NOT IBVERBS_INCLUDE_DIR))
message(FATAL_ERROR
"RoCEv2 requires libibverbs which was not found.\n"
"Install rdma-core, or reconfigure with -DNO_ROCEV2=ON to build without RoCEv2:\n"
" Ubuntu/Debian: sudo apt-get install libibverbs-dev rdma-core\n"
" Fedora/RHEL: sudo dnf install rdma-core-devel\n"
" conda-forge: conda install -c conda-forge rdma-core")
endif()
add_definitions(-DROGUE_ROCEV2)
include_directories(${IBVERBS_INCLUDE_DIR})
endif()
endif()
# C/C++
enable_language(CXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
add_definitions(-D__STDC_FORMAT_MACROS)
SET(CMAKE_CXX_STANDARD 14)
SET(CMAKE_SKIP_BUILD_RPATH TRUE)
SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
# >>> ROGUE_DEPENDENCY_DISCOVERY (keep byte-identical across CMakeLists.txt and templates/RogueConfig.cmake.in -- enforced by scripts/check_cmake_sync.sh)
#####################################
# Boost + Python
#####################################
if ( NOT NO_PYTHON )
# Find newest python interpreter first
set(Python3_FIND_STRATEGY "LOCATION")
find_package(Python3 QUIET REQUIRED COMPONENTS Interpreter Development)
# Find Numpy
execute_process(
COMMAND ${Python3_EXECUTABLE} -c "import numpy; print(numpy.get_include(), end='')"
RESULT_VARIABLE Python3_NumPy_RESULT
OUTPUT_VARIABLE Python3_NumPy_INCLUDE_DIRS
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (Python3_NumPy_RESULT)
message("")
message(FATAL_ERROR "Failed to find numpy includes!")
endif()
set(Boost_USE_MULTITHREADED ON)
set(Boost_NO_BOOST_CMAKE ON)
# Hint for boost on miniforge
if (DEFINED ENV{CONDA_PREFIX})
set(BOOST_ROOT $ENV{CONDA_PREFIX})
set(Boost_ROOT $ENV{CONDA_PREFIX})
endif()
# Loop through potential Boost Python component names
set(BOOST_PYTHON_CANDIDATES
"python${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}" # e.g. python313
"python${Python3_VERSION_MAJOR}" # e.g. python3
"python" # e.g. python
"python-py${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}" # e.g. python-py313
"python3-py${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}" # e.g. python3-py313
)
foreach(COMPONENT_NAME ${BOOST_PYTHON_CANDIDATES})
if(NOT Boost_FOUND)
message(STATUS "Checking for Boost component: ${COMPONENT_NAME}")
find_package(Boost QUIET COMPONENTS ${COMPONENT_NAME})
else()
break()
endif()
endforeach()
# Nothing worked
if (NOT Boost_FOUND)
message("")
message(FATAL_ERROR "Failed to find boost libraries! Tried: ${BOOST_PYTHON_CANDIDATES}")
endif()
else()
add_definitions( -DNO_PYTHON )
endif()
#####################################
# BZIP2
#####################################
find_package(BZip2 QUIET REQUIRED)
#####################################
# ZeroMQ
#####################################
# First try with cmake packages
find_package(ZeroMQ QUIET)
# ZeroMQ does not always support cmake, use brute force
if (NOT ZeroMQ_FOUND)
set(HINT_PATHS "")
# Convert library path hints for search.
if(DEFINED ENV{LD_LIBRARY_PATH})
string(REPLACE ":" ";" LD_HINT_PATHS $ENV{LD_LIBRARY_PATH})
list(APPEND HINT_PATHS ${LD_HINT_PATHS})
endif()
if(APPLE AND DEFINED ENV{DYLD_LIBRARY_PATH})
string(REPLACE ":" ";" DYLD_HINT_PATHS $ENV{DYLD_LIBRARY_PATH})
list(APPEND HINT_PATHS ${DYLD_HINT_PATHS})
endif()
# See if zmq library is in LD_LIBRARY_PATH
find_library(ZeroMQ_LIBRARY
NAMES zmq
PATHS ${HINT_PATHS})
# Found it
if (ZeroMQ_LIBRARY)
# Get the base directory
get_filename_component(ZMQ_LIBDIR ${ZeroMQ_LIBRARY} DIRECTORY)
# See if we can find the header in a relative path
find_path(ZeroMQ_INCLUDE_DIR
NAMES zmq.h
PATHS ${ZMQ_LIBDIR}/../include
)
if (NOT ZeroMQ_INCLUDE_DIR)
message("")
message(FATAL_ERROR "Failed to find ZeroMQ_INCLUDE_DIR!")
endif()
else()
# Failed to find it
message("")
message(FATAL_ERROR "Failed to find zeroMQ!")
endif()
endif()
# <<< ROGUE_DEPENDENCY_DISCOVERY
##########################################################
# Generate version with GIT If Not Passed As -DVERSION
##########################################################
if ( NOT ROGUE_VERSION )
# Set version from git tag
find_package(Git QUIET)
if (GIT_FOUND)
execute_process (
# Restrict auto-versioning to release tags so helper tags do not
# produce invalid Python package versions.
COMMAND ${GIT_EXECUTABLE} --git-dir=${CMAKE_SOURCE_DIR}/.git --work-tree=${CMAKE_SOURCE_DIR} describe --tags --dirty --match v*
RESULT_VARIABLE ROGUE_GIT_DESCRIBE_RESULT
OUTPUT_VARIABLE ROGUE_GIT_DESCRIBE_OUTPUT
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (ROGUE_GIT_DESCRIBE_RESULT EQUAL 0 AND NOT "${ROGUE_GIT_DESCRIBE_OUTPUT}" STREQUAL "")
set(ROGUE_VERSION "${ROGUE_GIT_DESCRIBE_OUTPUT}")
else()
set(ROGUE_VERSION "v0.0.0")
message(WARNING "git describe failed; defaulting ROGUE_VERSION to ${ROGUE_VERSION}")
endif()
else()
set(ROGUE_VERSION "v0.0.0")
message(WARNING "Git not found; defaulting ROGUE_VERSION to ${ROGUE_VERSION}")
endif()
endif()
string(REGEX MATCH "^v?([0-9]+)\\.([0-9]+)" ROGUE_SOVER "${ROGUE_VERSION}")
if (NOT ROGUE_SOVER)
set(ROGUE_SOVER "0.0")
message(WARNING "Unable to parse SOVERSION from ROGUE_VERSION='${ROGUE_VERSION}', defaulting to ${ROGUE_SOVER}")
endif()
#####################################
# Setup Type and Directories
#####################################
# Default install type
if ( NOT ROGUE_INSTALL )
if (DEFINED ENV{CONDA_PREFIX})
set (ROGUE_INSTALL "conda")
else()
set (ROGUE_INSTALL "local")
endif()
endif()
# Default Install directory
if (${ROGUE_INSTALL} STREQUAL "local")
set (ROGUE_DIR ${PROJECT_SOURCE_DIR})
elseif (NOT ROGUE_DIR)
if (${ROGUE_INSTALL} STREQUAL "custom")
set (ROGUE_DIR "$ENV{CONDA_PREFIX}/${CMAKE_INSTALL_PREFIX}/rogue")
elseif (${ROGUE_INSTALL} STREQUAL "target_arch")
set (ROGUE_DIR "${PROJECT_BINARY_DIR}")
elseif (${ROGUE_INSTALL} STREQUAL "conda")
set (ROGUE_DIR "$ENV{CONDA_PREFIX}")
else()
set (ROGUE_DIR "$ENV{CONDA_PREFIX}/${CMAKE_INSTALL_PREFIX}")
endif()
endif()
if ( NOT CMAKE_INSTALL_LIBDIR )
set (CMAKE_INSTALL_LIBDIR "${ROGUE_DIR}/lib")
endif()
if ( NOT CMAKE_INSTALL_INCLUDEDIR )
set (CMAKE_INSTALL_INCLUDEDIR "${ROGUE_DIR}/include")
endif()
#####################################
# Setup build, core library
#####################################
# Configuration File
configure_file (
${PROJECT_SOURCE_DIR}/templates/RogueConfig.h.in
${PROJECT_BINARY_DIR}/RogueConfig.h
)
# Add include directories
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_BINARY_DIR})
include_directories(system ${Boost_INCLUDE_DIRS})
include_directories(system ${Python3_INCLUDE_DIRS})
include_directories(system ${Python3_NumPy_INCLUDE_DIRS})
include_directories(system ${ZeroMQ_INCLUDE_DIR})
include_directories(system ${BZIP2_INCLUDE_DIR})
# Create rogue core library
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
add_library(rogue-core OBJECT "")
# Find rogue core sources
add_subdirectory(src/rogue)
# Always build shared library
add_library(rogue-core-shared SHARED $<TARGET_OBJECTS:rogue-core> "")
set_target_properties(rogue-core-shared PROPERTIES OUTPUT_NAME librogue-core)
if (APPLE)
set_target_properties(rogue-core-shared PROPERTIES PREFIX "" SUFFIX ".dylib")
else()
set_target_properties(rogue-core-shared PROPERTIES PREFIX "" SUFFIX ".so")
endif()
set_target_properties(rogue-core-shared PROPERTIES VERSION ${ROGUE_VERSION} SOVERSION ${ROGUE_SOVER})
TARGET_LINK_LIBRARIES(rogue-core-shared PUBLIC ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES(rogue-core-shared PUBLIC ${ZeroMQ_LIBRARY})
TARGET_LINK_LIBRARIES(rogue-core-shared PUBLIC ${BZIP2_LIBRARIES})
# Do not link directly against python in mac os
if (APPLE)
set_target_properties(rogue-core-shared PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
else()
TARGET_LINK_LIBRARIES(rogue-core-shared PUBLIC ${Python3_LIBRARIES})
TARGET_LINK_LIBRARIES(rogue-core-shared PUBLIC rt)
endif()
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT NO_ROCEV2)
TARGET_LINK_LIBRARIES(rogue-core-shared PUBLIC ${IBVERBS_LIBRARY})
endif()
#####################################
# Coverage instrumentation (CI only)
#####################################
if (ROGUE_COVERAGE)
if (NOT (CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang"))
message(FATAL_ERROR "ROGUE_COVERAGE=ON requires GCC or Clang (got ${CMAKE_CXX_COMPILER_ID})")
endif()
target_compile_options(rogue-core PRIVATE --coverage -O0 -g)
target_compile_options(rogue-core-shared PRIVATE --coverage -O0 -g)
target_link_options (rogue-core-shared PRIVATE --coverage)
message(STATUS "ROGUE_COVERAGE: ENABLED (--coverage -O0 -g on rogue-core targets)")
endif()
if(STATIC_LIB)
add_library(rogue-core-static STATIC $<TARGET_OBJECTS:rogue-core> "")
set_target_properties(rogue-core-static PROPERTIES OUTPUT_NAME librogue-core)
set_target_properties(rogue-core-static PROPERTIES PREFIX "" SUFFIX ".a")
# Link rogue core to boost, python and bzip
TARGET_LINK_LIBRARIES(rogue-core-static PUBLIC ${Boost_LIBRARIES})
TARGET_LINK_LIBRARIES(rogue-core-static PUBLIC ${ZeroMQ_LIBRARY})
TARGET_LINK_LIBRARIES(rogue-core-static PUBLIC ${BZIP2_LIBRARIES})
TARGET_LINK_LIBRARIES(rogue-core-static PUBLIC ${Python3_LIBRARIES})
if (NOT APPLE)
TARGET_LINK_LIBRARIES(rogue-core-static PUBLIC rt)
endif()
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT NO_ROCEV2)
TARGET_LINK_LIBRARIES(rogue-core-static PUBLIC ${IBVERBS_LIBRARY})
endif()
if (ROGUE_COVERAGE)
target_compile_options(rogue-core-static PRIVATE --coverage -O0 -g)
target_link_options (rogue-core-static PRIVATE --coverage)
endif()
endif()
#####################################
# Setup build, python library
#####################################
if (NOT NO_PYTHON)
# Create rogue python library
add_library(rogue SHARED "")
# Find python package sources
add_subdirectory(src)
# Set output to TOP/python, remove lib prefix
set_target_properties(rogue PROPERTIES PREFIX "" SUFFIX ".so")
set_target_properties(rogue PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/python)
if (APPLE)
set_target_properties(rogue PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
endif()
# Link to rogue core
TARGET_LINK_LIBRARIES(rogue PUBLIC rogue-core-shared)
else()
add_definitions( -DNO_PYTHON )
endif()
#####################################
# Native C++ Tests
#####################################
if (ROGUE_BUILD_TESTS)
enable_testing()
add_subdirectory(tests/cpp)
endif()
#########################################
# Configuration & Setup Script Generation
#########################################
set(CONF_INCLUDE_DIRS ${CMAKE_INSTALL_INCLUDEDIR})
# Setup configuration file
if ((${ROGUE_INSTALL} STREQUAL "system") OR (${ROGUE_INSTALL} STREQUAL "conda"))
set(CONF_LIBRARIES rogue-core)
else()
if (APPLE)
set(CONF_LIBRARIES ${CMAKE_INSTALL_LIBDIR}/librogue-core.${ROGUE_SOVER}.dylib)
else()
set(CONF_LIBRARIES ${CMAKE_INSTALL_LIBDIR}/librogue-core.so.${ROGUE_SOVER})
endif()
endif()
# Create the config file
configure_file(${PROJECT_SOURCE_DIR}/templates/RogueConfig.cmake.in
${PROJECT_BINARY_DIR}/RogueConfig.cmake @ONLY)
# Create the setup files
configure_file(${PROJECT_SOURCE_DIR}/templates/setup_rogue.csh.in
${PROJECT_BINARY_DIR}/setup_rogue.csh @ONLY)
configure_file(${PROJECT_SOURCE_DIR}/templates/setup_rogue.sh.in
${PROJECT_BINARY_DIR}/setup_rogue.sh @ONLY)
configure_file(${PROJECT_SOURCE_DIR}/templates/setup_rogue.fish.in
${PROJECT_BINARY_DIR}/setup_rogue.fish @ONLY)
# Create the python install script
configure_file(${PROJECT_SOURCE_DIR}/templates/setup.py.in
${PROJECT_BINARY_DIR}/setup.py)
#####################################
# Install Setup
#####################################
# Always install core libraries and config files
if (STATIC_LIB)
install(TARGETS rogue-core-static LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
install(TARGETS rogue-core-shared LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES ${PROJECT_BINARY_DIR}/RogueConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR})
# Copy setup files for local or custom
if ((${ROGUE_INSTALL} STREQUAL "custom") OR (${ROGUE_INSTALL} STREQUAL "local"))
install(FILES ${PROJECT_BINARY_DIR}/setup_rogue.sh ${PROJECT_BINARY_DIR}/setup_rogue.csh ${PROJECT_BINARY_DIR}/setup_rogue.fish DESTINATION ${ROGUE_DIR})
endif()
# Install header files for non local installs
if (NOT (${ROGUE_INSTALL} STREQUAL "local"))
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/rogue DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} FILES_MATCHING PATTERN "*.h")
endif()
# Conda activate and deactivate functions
if (${ROGUE_INSTALL} STREQUAL "conda")
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${ROGUE_DIR}/etc/conda/activate.d)")
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${ROGUE_DIR}/etc/conda/deactivate.d)")
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/templates/activate-rogue.sh
${ROGUE_DIR}/etc/conda/activate.d/rogue.sh)")
install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/templates/deactivate-rogue.sh
${ROGUE_DIR}/etc/conda/deactivate.d/rogue.sh)")
endif()
# Python file install
if (NOT NO_PYTHON)
# Install python files directly for custom install
if (${ROGUE_INSTALL} STREQUAL "custom")
install(DIRECTORY ${PROJECT_SOURCE_DIR}/python/pyrogue DESTINATION ${ROGUE_DIR}/python FILES_MATCHING PATTERN "*.py")
install(TARGETS rogue LIBRARY DESTINATION ${ROGUE_DIR}/python)
# Use pip with python3 for system or miniforge
elseif ((${ROGUE_INSTALL} STREQUAL "system") OR (${ROGUE_INSTALL} STREQUAL "conda"))
if (NOT ROGUE_SKIP_PIP_INSTALL)
install(CODE "execute_process(COMMAND ${Python3_EXECUTABLE} -m pip install --no-deps --no-build-isolation ${PROJECT_BINARY_DIR}/ COMMAND_ERROR_IS_FATAL ANY)")
endif()
endif()
# Do byte compile for custom or local
if ((${ROGUE_INSTALL} STREQUAL "custom") OR (${ROGUE_INSTALL} STREQUAL "local"))
install(CODE "execute_process(COMMAND ${Python3_EXECUTABLE} -m compileall ${ROGUE_DIR}/python)")
endif()
endif()
#####################################
# Print status
#####################################
message("")
message("----------------------------------------------------------------------")
message("-- Rogue Version: ${ROGUE_VERSION}")
message("")
message("-- Install Type: -DROGUE_INSTALL=${ROGUE_INSTALL}")
message("")
message("-- Install Path: -DROGUE_DIR=${ROGUE_DIR}")
message("")
if (NO_PYTHON)
message("-- Compiling without boost & python!")
else()
message("-- Found boost: ${Boost_LIBRARIES}")
message("")
message("-- Found python: ${Python3_LIBRARIES}")
message("-- Found numpy: ${Python3_NumPy_INCLUDE_DIRS}")
endif()
message("")
message("-- Found ZeroMq: ${ZeroMQ_INCLUDE_DIR}")
message("")
message("-- Found Bzip2: ${BZIP2_INCLUDE_DIR}")
message("")
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND NOT NO_ROCEV2)
message("-- RoCEv2 support: ENABLED (${IBVERBS_LIBRARY})")
elseif (NO_ROCEV2)
message("-- RoCEv2 support: disabled (-DNO_ROCEV2=ON)")
else()
message("-- RoCEv2 support: disabled (Linux only)")
endif()
message("")
message("-- Link dynamic rogue library!")
if (STATIC_LIB)
message("-- Link static rogue library!")
endif()
message("----------------------------------------------------------------------")
message("")