forked from LuaDist/srlua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (23 loc) · 896 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Copyright (C) 2012 LuaDist.
# Created by Peter Drahoš, Peter Kapec
# Redistribution and use of this file is allowed according to the terms of the MIT license.
# For details see the COPYRIGHT file distributed with LuaDist.
# Please note that the package source code is licensed under its own license.
project ( srlua C )
cmake_minimum_required ( VERSION 2.8 )
include ( cmake/dist.cmake )
find_package ( Lua REQUIRED )
include_directories(${LUA_INCLUDE_DIR})
add_executable(glue glue.c glue.rc)
add_executable(srlua srlua.c srlua.rc)
target_link_libraries(glue ${LUA_LIBRARIES})
target_link_libraries(srlua ${LUA_LIBRARIES})
# No console version on windows
if (WIN32)
add_executable(wsrlua WIN32 wmain.c srlua.c srlua.rc)
target_link_libraries(wsrlua ${LUA_LIBRARIES})
install_executable(wsrlua)
endif()
install_executable(glue srlua)
install_data(README.md)
install_test(test.lua)