PROJECT(cdf2nc) include_directories( ${CMAKE_HOME_DIRECTORY}/src/INCLUDE/ ${NETCDFINCLUDE_DIR} ${libcdf_INCLUDE_DIR} ) #Configuration de l'exécutable file( GLOB_RECURSE source_files ./* ) ADD_EXECUTABLE (cdf2nc ${source_files} ) target_link_libraries( cdf2nc DD_Client ${NETCDFLIBRARY} ${libcdf_LIBRARIES} ) install (TARGETS cdf2nc DESTINATION bin)