diff options
author | Tomaz Canabrava <tomaz.canabrava@intel.com> | 2015-04-07 16:53:28 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-04-07 16:07:07 -0700 |
commit | 057231701e68b5546c7ce373286b7999c93f3b04 (patch) | |
tree | e6f32c01f7ad6d3afd7f87cd4a4ac3457daad7df /cmake/Modules | |
parent | e56580229bd60e1363344fc4fb7439550f7392a4 (diff) | |
download | subsurface-057231701e68b5546c7ce373286b7999c93f3b04.tar.gz |
Move the pkg_config_library macro to its own file
The pkg_config_library macro is a helper macro and was generating noise
on the main CMakeLists.txt file, so I moved it to another file.
Signed-off-by: Tomaz Canabrava <tomaz.canabrava@intel.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'cmake/Modules')
-rw-r--r-- | cmake/Modules/pkgconfig_helper.cmake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/Modules/pkgconfig_helper.cmake b/cmake/Modules/pkgconfig_helper.cmake new file mode 100644 index 000000000..afb523855 --- /dev/null +++ b/cmake/Modules/pkgconfig_helper.cmake @@ -0,0 +1,7 @@ +MACRO(pkg_config_library LIBNAME pcfile) + pkg_check_modules(${LIBNAME} REQUIRED ${pcfile}) + include_directories(${${LIBNAME}_INCLUDE_DIRS}) + link_directories(${${LIBNAME}_LIBRARY_DIRS}) + add_definitions(${${LIBNAME}_CFLAGS_OTHER}) + set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} ${${LIBNAME}_LIBRARIES}) +ENDMACRO() |