CMakeLists.txt 550 Bytes

PROJECT(THEMIS)

include_directories(
  ${DDCLIENTINCLUDE_DIR}
  ${NETCDFINCLUDE_DIR}
  ${libcdf_INCLUDE_DIR}
)

#Configuration de l'exécutable

file( GLOB SOURCE_FILES ./*.c )

foreach( sourcefile ${SOURCE_FILES} )
    get_filename_component( source ${sourcefile} NAME)
    string( REPLACE ".c" "" exefile ${source} )
    add_executable( ${exefile} ${source} )
    target_link_libraries( ${exefile} ${DDCLIENTLIBRARY} ${NETCDFLIBRARY} ${libcdf_LIBRARIES} )
    install (TARGETS ${exefile} DESTINATION bin)
endforeach( sourcefile ${SOURCE_FILE} )