CMakeLists.txt
567 Bytes
PROJECT(DDSERVICS_SOAP_TOOLS)
include_directories(
${DDCLIENTINCLUDE_DIR}
${NETCDFINCLUDE_DIR}
${LIBXML2_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} ${LIBXML2_LIBRARIES})
install (TARGETS ${exefile} DESTINATION bin)
endforeach( sourcefile ${SOURCE_FILE} )