CPack packaging support from Dan Eicher, tested to build redhat RPM's, a Mac bundle...
[blender.git] / build_files / cmake / RpmBuild.cmake
1 #
2 # VLMC RPM Finder
3 # Authors: Rohit Yadav <rohityadav89@gmail.com>
4 #
5
6 find_program(RPMBUILD
7     NAMES rpmbuild
8     PATHS "/usr/bin")
9
10 if ( RPMBUILD )
11     get_filename_component(RPMBUILD_PATH ${RPMBUILD} ABSOLUTE)
12     message(STATUS "Found rpmbuild : ${RPMBUILD_PATH}")
13     set(RPMBUILD_FOUND "YES")
14 else ( RPMBUILD ) 
15     message(STATUS "rpmbuild NOT found. RPM generation will not be available")
16     set(RPMBUILD_FOUND "NO")
17 endif ( RPMBUILD )
18 #
19 # VLMC RPM Finder
20 # Authors: Rohit Yadav <rohityadav89@gmail.com>
21 #
22
23 find_program(RPMBUILD
24     NAMES rpmbuild
25     PATHS "/usr/bin")
26
27 if ( RPMBUILD )
28     get_filename_component(RPMBUILD_PATH ${RPMBUILD} ABSOLUTE)
29     message(STATUS "Found rpmbuild : ${RPMBUILD_PATH}")
30     set(RPMBUILD_FOUND "YES")
31 else ( RPMBUILD ) 
32     message(STATUS "rpmbuild NOT found. RPM generation will not be available")
33     set(RPMBUILD_FOUND "NO")
34 endif ( RPMBUILD )