summaryrefslogtreecommitdiff
path: root/src/plugins/lua/CMakeLists.txt
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-04-12 18:00:27 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-04-12 18:00:27 +0200
commit7618fdd240e32292b2202c76550c67f09ee0d90e (patch)
treefac0d0f452c6e6ead98db6ce107e36eeb5f95b09 /src/plugins/lua/CMakeLists.txt
parent51d18c92e54b58c2a612ef765f7802226e62ba42 (diff)
downloadweechat-7618fdd240e32292b2202c76550c67f09ee0d90e.zip
core: use lower case for CMake keywords
Diffstat (limited to 'src/plugins/lua/CMakeLists.txt')
-rw-r--r--src/plugins/lua/CMakeLists.txt22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/plugins/lua/CMakeLists.txt b/src/plugins/lua/CMakeLists.txt
index d4102ad6f..cfbb31d94 100644
--- a/src/plugins/lua/CMakeLists.txt
+++ b/src/plugins/lua/CMakeLists.txt
@@ -18,18 +18,18 @@
# along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
#
-ADD_LIBRARY(lua MODULE weechat-lua.c weechat-lua.h weechat-lua-api.c
+add_library(lua MODULE weechat-lua.c weechat-lua.h weechat-lua-api.c
weechat-lua-api.h)
-SET_TARGET_PROPERTIES(lua PROPERTIES PREFIX "")
+set_target_properties(lua PROPERTIES PREFIX "")
-IF(LUA_FOUND)
- INCLUDE_DIRECTORIES(${LUA_INCLUDE_PATH} )
- IF(LUA_LIBRARY AND LUALIB_LIBRARY)
- TARGET_LINK_LIBRARIES(lua ${LUA_LIBRARY} ${LUALIB_LIBRARY} weechat_plugins_scripts)
- ELSE(LUA_LIBRARY AND LUALIB_LIBRARY)
- TARGET_LINK_LIBRARIES(lua ${LUA_LIBRARY} weechat_plugins_scripts)
- ENDIF(LUA_LIBRARY AND LUALIB_LIBRARY)
-ENDIF(LUA_FOUND)
+if(LUA_FOUND)
+ include_directories(${LUA_INCLUDE_PATH} )
+ if(LUA_LIBRARY AND LUALIB_LIBRARY)
+ target_link_libraries(lua ${LUA_LIBRARY} ${LUALIB_LIBRARY} weechat_plugins_scripts)
+ else()
+ target_link_libraries(lua ${LUA_LIBRARY} weechat_plugins_scripts)
+ endif()
+endif()
-INSTALL(TARGETS lua LIBRARY DESTINATION ${LIBDIR}/plugins)
+install(TARGETS lua LIBRARY DESTINATION ${LIBDIR}/plugins)