12.2.4.4 : Le fichier CMakeLists.txt
1 2 3 4 5 6 7 8 9 10 |
# Generate the HDF5 sources from build : # cd ../src/; phoenix_hdf5 -i RawHdf5.ph5; cd - add_library(compute_hdf5_data_format RawHdf5.cpp RawHdf5_hdf5.cpp) target_link_libraries(compute_hdf5_data_format ${HDF5_CXX_LIBRARIES}) add_executable(compute_cufft_on_hdf5 main.cpp) target_link_libraries(compute_cufft_on_hdf5 compute_hdf5_data_format ${HDF5_CXX_LIBRARIES} NVHPC::MATH NVHPC::CUDART) add_executable(create_hdf5_normal_distribution main_create_file.cpp) target_link_libraries(create_hdf5_normal_distribution compute_hdf5_data_format ${HDF5_CXX_LIBRARIES} NVHPC::MATH NVHPC::CUDART) |
Le CMakeLists.txt complet :
1 2 3 4 5 6 7 8 9 10 |
# Generate the HDF5 sources from build : # cd ../src/; phoenix_hdf5 -i RawHdf5.ph5; cd - add_library(compute_hdf5_data_format RawHdf5.cpp RawHdf5_hdf5.cpp) target_link_libraries(compute_hdf5_data_format ${HDF5_CXX_LIBRARIES}) add_executable(compute_cufft_on_hdf5 main.cpp) target_link_libraries(compute_cufft_on_hdf5 compute_hdf5_data_format ${HDF5_CXX_LIBRARIES} NVHPC::MATH NVHPC::CUDART) add_executable(create_hdf5_normal_distribution main_create_file.cpp) target_link_libraries(create_hdf5_normal_distribution compute_hdf5_data_format ${HDF5_CXX_LIBRARIES} NVHPC::MATH NVHPC::CUDART) |