1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00
VILLASnode/fpga/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

56 lines
1.7 KiB
Text
Raw Permalink Normal View History

2018-06-25 17:03:09 +02:00
## CMakeLists.txt
#
# Author: Daniel Krebs <github@daniel-krebs.net>
# SPDX-FileCopyrightText: 2018 Institute for Automation of Complex Power Systems, RWTH Aachen University
# SPDX-License-Identifier: Apache-2.0
2018-08-21 14:56:15 +02:00
# GPU library is optional, check for CUDA presence
include(CheckLanguage)
check_language(CUDA)
2018-08-21 15:53:47 +02:00
if(CMAKE_CUDA_COMPILER)
add_subdirectory(gpu)
2018-08-21 15:53:47 +02:00
else()
message("No CUDA support, not building GPU library")
2018-08-21 15:53:47 +02:00
endif()
include(FindPkgConfig)
2020-06-15 21:55:03 +02:00
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/local/share/pkgconfig:/usr/lib64/pkgconfig")
pkg_check_modules(JANSSON REQUIRED IMPORTED_TARGET jansson)
find_package(Threads)
2020-06-15 22:49:19 +02:00
find_package(Criterion)
include_directories(thirdparty/CLI11)
include_directories(thirdparty/rang)
2022-11-11 03:12:53 -05:00
add_subdirectory(thirdparty/libxil)
add_subdirectory(lib)
2018-06-25 16:01:38 +02:00
add_subdirectory(src)
2020-06-15 22:49:19 +02:00
if(CRITERION_FOUND)
add_subdirectory(tests/unit)
2020-06-15 22:49:19 +02:00
endif()
# Project settings
set(PROJECT_NAME "VILLASfpga")
set(PROJECT_DESCRIPTION "Host library for configuring and communicating with VILLASfpga")
set(PROJECT_VENDOR "Institute for Automation of Complex Power Systems, RWTH Aachen University")
set(PROJECT_URL "https://www.fein-aachen.org/projects/villas-fpga/")
set(PROJECT_VERSION_MAJOR "0")
set(PROJECT_VERSION_MINOR "1")
set(PROJECT_VERSION_PATCH "0")
set(PROJECT_RELEASE "1")
# pkg-config
configure_file("libvillas-fpga.pc.in" "libvillas-fpga.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libvillas-fpga.pc" DESTINATION "${CMAKE_INSTALL_PREFIX}/lib${LIB_SUFFIX}/pkgconfig")
# As close as possible to Fedoras naming
2018-04-05 11:39:53 +02:00
set(CPACK_PACKAGE_FILE_NAME "${CPACK_SOURCE_PACKAGE_FILE_NAME}-${CPACK_RPM_PACKAGE_RELEASE}.${CPACK_RPM_PACKAGE_ARCHITECTURE}")
set(CPACK_GENERATOR "RPM")
2018-06-25 16:01:38 +02:00
include(CPack)