ardupilot/cmake/arkcmake/MacroCommonPaths.cmake
2011-09-29 14:16:36 -04:00

52 lines
1.8 KiB
CMake

macro(MacroCommonPaths NAME)
set(COMMON_INCLUDE_PATHS_${NAME}
$ENV{${NAME}_DIR}/include
$ENV{${NAME}_DIR}
$ENV{${NAME}_ROOT}/include
$ENV{${NAME}_ROOT}
~/Library/Frameworks
/Library/Frameworks
/usr/local/include
/usr/include
/sw/include # Fink
/opt/local/include # DarwinPorts
/opt/csw/include # Blastwave
/opt/include
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\\Manager\\Environment;${NAME}_DIR]/include
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\\Manager\\Environment;${NAME}_ROOT]/include
/usr/freeware/include
)
set(COMMON_LIB_PATHS_${NAME}
$ENV{${NAME}_DIR}/lib
$ENV{${NAME}_DIR}
~/Library/Frameworks
/Library/Frameworks
/usr/local/lib
/usr/lib
/sw/lib
/opt/local/lib
/opt/csw/lib
/opt/lib
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\\Manager\\Environment;${NAME}_DIR]/lib
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\\Manager\\Environment;${NAME}_ROOT]/lib
/usr/freeware/lib64
)
set(COMMON_DATA_PATHS_${NAME}
$ENV{${NAME}_DIR}/share
$ENV{${NAME}_DIR}
~/Library/Frameworks
/Library/Frameworks
/usr/local/share
/usr/share
/sw/share
/opt/local/share
/opt/csw/share
/opt/share
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\\Manager\\Environment;${NAME}_DIR]/share
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session\\Manager\\Environment;${NAME}_ROOT]/share
/usr/freeware/share64
)
endmacro(MacroCommonPaths)
# vim:ts=4:sw=4:expandtab