1# Find arts CFLAGS etc 2 3FIND_PROGRAM(ARTS_CONFIG_EXECUTABLE artsc-config) 4MARK_AS_ADVANCED(ARTS_CONFIG_EXECUTABLE) 5 6IF (ARTS_CONFIG_EXECUTABLE) 7 EXECUTE_PROCESS(COMMAND ${ARTS_CONFIG_EXECUTABLE} --cflags 8 OUTPUT_VARIABLE ARTS_CFLAGS 9 OUTPUT_STRIP_TRAILING_WHITESPACE) 10 11 EXECUTE_PROCESS(COMMAND ${ARTS_CONFIG_EXECUTABLE} --libs 12 OUTPUT_VARIABLE ARTS_LDFLAGS 13 OUTPUT_STRIP_TRAILING_WHITESPACE) 14 15 SET(ARTS_FOUND TRUE) 16ENDIF(ARTS_CONFIG_EXECUTABLE) 17