File: FindCTD2Galaxy.cmake

package info (click to toggle)
ball 1.5.0%2Bgit20180813.37fc53c-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 239,924 kB
  • sloc: cpp: 326,149; ansic: 4,208; python: 2,303; yacc: 1,778; lex: 1,099; xml: 958; sh: 322; javascript: 164; makefile: 88
file content (34 lines) | stat: -rw-r--r-- 1,054 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Macro to find CTD2Galaxy
# More information on CTD2Galaxy under https://github.com/WorkflowConversion/CTD2Galaxy
#
# This macro will set the following variables:
#    CTD2GALAXY
#
# This macro will read from the following variable:
#    CTD2GALAXY_DIR - Directory under which CTD2Galaxy/generator.py is found
#
# This macro depends on the following variables:
#	 CTDOPTS_MODULE
#	 PYTHONINTERP

FIND_PACKAGE(PythonInterp)
FIND_PACKAGE(CTDopts)

IF(PYTHONINTERP_FOUND)
	IF(CTDOPTS_MODULE)
		# CTDopts module found, now find the scripts for CTD2Galaxy
		FIND_FILE(CTD2GALAXY
			NAMES generator.py
			PATHS ${CTD2GALAXY_DIR} ${CTD2GALAXY_DIR}/CTD2Galaxy)
		IF(CTD2GALAXY)
			MESSAGE(STATUS "Found generator.py in: " ${CTD2GALAXY})
			MARK_AS_ADVANCED(CTD2GALAXY)
		ELSE()	
			MESSAGE(STATUS "CTD2Galaxy could not be found.")
		ENDIF()
	ELSE()
		MESSAGE(STATUS "CTD2Galaxy depends on CTDopts and it could not be found.")
	ENDIF()
ELSE()
	MESSAGE(STATUS "CTD2Galaxy depends on PythonInterp, which was not found.")	
ENDIF()