diff --git a/cmake/MDEBase.cmake b/cmake/MDEBase.cmake index 3eb5c3f..da4f42c 100644 --- a/cmake/MDEBase.cmake +++ b/cmake/MDEBase.cmake @@ -1,7 +1,7 @@ include_guard(DIRECTORY) include(GNUInstallDirs) -macro(setup_base type name dir) +macro(mde_setup_base type name dir) project( ${name} ) @@ -43,15 +43,15 @@ macro(setup_base type name dir) ) endmacro() -macro(setup_project name dir) - setup_base(project ${name} ${dir}) +macro(mde_setup_project name dir) + mde_setup_base(project ${name} ${dir}) endmacro() -macro(setup_library name) +macro(mde_setup_library name) if(ARGV2) - setup_base(library ${name} ARGV2) + mde_setup_base(library ${name} ARGV2) else() - setup_base(library ${name} ${CMAKE_INSTALL_LIBDIR}) + mde_setup_base(library ${name} ${CMAKE_INSTALL_LIBDIR}) endif() if(EXISTS "../include") @@ -63,7 +63,7 @@ macro(setup_library name) endif() endmacro() -macro(math_add name) +macro(mde_math_add name) if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") target_link_libraries( ${name} diff --git a/cmake/MDEOpenGL.cmake b/cmake/MDEOpenGL.cmake index d65a31c..1088c80 100644 --- a/cmake/MDEOpenGL.cmake +++ b/cmake/MDEOpenGL.cmake @@ -1,7 +1,7 @@ include_guard(DIRECTORY) include(MDEPkgConfig) -macro(opengl_add name) +macro(mde_opengl_add name) if(CMAKE_SYSTEM_NAME STREQUAL "Windows") target_link_libraries( ${name} @@ -9,11 +9,11 @@ macro(opengl_add name) opengl32 ) else() - pkg_config_add(${name} gl) + mde_pkg_config_add(${name} gl) endif() endmacro() -macro(glu_add name) +macro(mde_glu_add name) if(CMAKE_SYSTEM_NAME STREQUAL "Windows") target_link_libraries( ${name} @@ -21,6 +21,6 @@ macro(glu_add name) glu32 ) else() - pkg_config_add(${name} glu) + mde_pkg_config_add(${name} glu) endif() endmacro() diff --git a/cmake/MDEPkgConfig.cmake b/cmake/MDEPkgConfig.cmake index 2bb23ac..efcd7dc 100644 --- a/cmake/MDEPkgConfig.cmake +++ b/cmake/MDEPkgConfig.cmake @@ -1,7 +1,7 @@ include_guard(DIRECTORY) find_package(PkgConfig) -macro(pkg_config_add dest name) +macro(mde_pkg_config_add dest name) pkg_check_modules(${name} REQUIRED ${name}) target_include_directories( ${dest}