mirror of
https://github.com/nqrduck/LimeDriver.git
synced 2024-11-22 01:52:24 +00:00
Kumi
4a9fc5c81a
artifacts Transition the project's build system from Autoconf to CMake, streamlining the build process and conforming to modern C++ project standards. Autoconf related files like 'configure', 'install-sh', and 'missing' have been removed while CMakeLists and relevant .cmake configuration files are added to support the new system. This change addresses the need for a more portable and easier-to-maintain build system, particularly beneficial for cross-platform development. As a result, build process customization and dependency management are expected to be more straightforward. Additionally, `.gitignore` has been adjusted to accommodate the CMake build outputs. The new CMake build system introduces `build/` as the directory for out-of-source builds, replacing the more scattered build artifacts of the previous system.
16 lines
760 B
CMake
16 lines
760 B
CMake
cmake_minimum_required(VERSION 3.10) # Adjust the version as needed
|
|
project(limedriver VERSION 1.0 LANGUAGES CXX) # Project name and version
|
|
|
|
# Find HDF5 if you're using h5c++ otherwise you can omit this part
|
|
find_package(HDF5 COMPONENTS CXX REQUIRED)
|
|
|
|
# Replace this with find_package if LimeSuite provides CMake package configuration
|
|
find_path(LIMESUITE_INCLUDE_DIR LimeSuite.h)
|
|
find_library(LIMESUITE_LIBRARY LimeSuite)
|
|
|
|
add_executable(limedriver src/limedriver.cpp) # Define the executable and its source
|
|
|
|
target_include_directories(limedriver PRIVATE ${HDF5_INCLUDE_DIRS}) # Include dirs
|
|
target_link_libraries(limedriver PRIVATE ${HDF5_LIBRARIES} ${LIMESUITE_LIBRARY}) # Linking libraries
|
|
|
|
install(TARGETS limedriver DESTINATION bin) # Install rule
|