summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2012-12-07 03:02:15 -0500
committerNaram Qashat <cyberbotx@cyberbotx.com>2012-12-07 03:02:15 -0500
commit9dec0936761055abc9f4650ce4bd60b19aa2b328 (patch)
tree7dc560e8e6668ba1d587ddebe0b162cbd2957be6 /CMakeLists.txt
parentf711dd3460f15027c756805aa4339a108bcf812b (diff)
Modified the Config scripts to ask the user explicitly for additional include and library directories.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 52c18e426..addc01424 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -209,12 +209,19 @@ else(CMAKE244_OR_BETTER)
include(TestCXXAcceptsFlag)
endif(CMAKE244_OR_BETTER)
-# If extra directories were specified, tell cmake about them.
+# If extra include directories were specified, tell cmake about them.
if(EXTRA_INCLUDE)
include_directories(${EXTRA_INCLUDE})
link_directories(${EXTRA_INCLUDE})
endif(EXTRA_INCLUDE)
+# If extra library directories were specified, tell cmake about them.
+if(EXTRA_LIBS)
+ foreach(LIB ${EXTRA_LIBS})
+ set(CXXFLAGS "${CXXFLAGS} -L${LIB}")
+ endforeach(LIB)
+endif(EXTRA_LIBS)
+
# Find gettext
find_package(Gettext)