summaryrefslogtreecommitdiff
path: root/cmake/helpers/EflMacros.cmake
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2017-01-20 10:25:55 -0200
committerMarcel Hollerbach <marcel-hollerbach@t-online.de>2017-01-23 18:23:40 +0100
commite1b98ca4f2148b752cf35246c4435733dc08a547 (patch)
tree10dc95bc793dd1ad6b548ee04394ef085032263d /cmake/helpers/EflMacros.cmake
parentc4e78153b16f89a14245db97316158006a732cde (diff)
EflMacros: trust target name.
since this will be made automatic later and we can guarantee consistency in the file hierarchy, no need to lowercase that.
Diffstat (limited to 'cmake/helpers/EflMacros.cmake')
-rw-r--r--cmake/helpers/EflMacros.cmake19
1 files changed, 9 insertions, 10 deletions
diff --git a/cmake/helpers/EflMacros.cmake b/cmake/helpers/EflMacros.cmake
index 9f8db24a4c..034e5e3ed2 100644
--- a/cmake/helpers/EflMacros.cmake
+++ b/cmake/helpers/EflMacros.cmake
@@ -135,22 +135,21 @@ endfunction()
135# - compile tests in ${Name}_TESTS using EFL_TEST() 135# - compile tests in ${Name}_TESTS using EFL_TEST()
136# 136#
137function(EFL_LIB _target) 137function(EFL_LIB _target)
138 string(TOLOWER ${_target} _target_lc)
139 set(EFL_LIB_CURRENT ${_target}) 138 set(EFL_LIB_CURRENT ${_target})
140 set(EFL_LIB_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/${_target_lc}) 139 set(EFL_LIB_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/lib/${_target})
141 set(EFL_LIB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/lib/${_target_lc}) 140 set(EFL_LIB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/lib/${_target})
142 set(EFL_BIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/bin/${_target_lc}) 141 set(EFL_BIN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/bin/${_target})
143 set(EFL_BIN_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/bin/${_target_lc}) 142 set(EFL_BIN_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/bin/${_target})
144 set(EFL_MODULES_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/modules/${_target_lc}) 143 set(EFL_MODULES_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/modules/${_target})
145 set(EFL_MODULES_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/modules/${_target_lc}) 144 set(EFL_MODULES_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/modules/${_target})
146 set(EFL_TESTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/tests/${_target_lc}) 145 set(EFL_TESTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src/tests/${_target})
147 set(EFL_TESTS_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/tests/${_target_lc}) 146 set(EFL_TESTS_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/src/tests/${_target})
148 147
149 set(${_target}_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}) 148 set(${_target}_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
150 set(${_target}_SOVERSION ${PROJECT_VERSION_MAJOR}) 149 set(${_target}_SOVERSION ${PROJECT_VERSION_MAJOR})
151 set(${_target}_LIBRARY_TYPE SHARED) 150 set(${_target}_LIBRARY_TYPE SHARED)
152 151
153 include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config/${_target_lc}.cmake OPTIONAL) 152 include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/config/${_target}.cmake OPTIONAL)
154 include(${EFL_LIB_SOURCE_DIR}/CMakeLists.txt OPTIONAL) 153 include(${EFL_LIB_SOURCE_DIR}/CMakeLists.txt OPTIONAL)
155 include(${EFL_BIN_SOURCE_DIR}/CMakeLists.txt OPTIONAL) 154 include(${EFL_BIN_SOURCE_DIR}/CMakeLists.txt OPTIONAL)
156 include(${EFL_MODULES_SOURCE_DIR}/CMakeLists.txt OPTIONAL) 155 include(${EFL_MODULES_SOURCE_DIR}/CMakeLists.txt OPTIONAL)