Set path prefix length in CMakeListsGlobal
[oonf.git] / CMakeListsGlobal.cmake
index 4168059..b0f2763 100644 (file)
@@ -30,6 +30,10 @@ include_directories(${CMAKE_BINARY_DIR})
 #### API configuration ####
 ###########################
 
+# add define for length of base path
+string(LENGTH "${CMAKE_SOURCE_DIR}/" BASELENGTH)
+add_definitions(-DBASEPATH_LENGTH=${BASELENGTH})
+
 # set cached variables
 include (${CMAKE_CURRENT_LIST_DIR}/cmake/lib_config.cmake)