forked from satoren/LRDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
luarocks_cmake.txt
36 lines (24 loc) · 1012 Bytes
/
luarocks_cmake.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
30
31
32
33
34
35
36
include_directories(SYSTEM ${LUA_INCLUDE_DIRS})
link_directories(${LUA_LIBRARY_DIRS})
if(NOT LUA_LIBRARIES)
set(LUA_LIBRARIES "lua")
endif()
if(LRDB_USE_BOOST_ASIO)
add_definitions(-DLRDB_USE_BOOST_ASIO)
else(LRDB_USE_BOOST_ASIO)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/third_party/asio/asio/include")
endif(LRDB_USE_BOOST_ASIO)
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/third_party/picojson")
if(ADDITIONAL_INCLUDE_PATH)
include_directories(SYSTEM ${ADDITIONAL_INCLUDE_PATH})
endif()
include_directories("${CMAKE_CURRENT_SOURCE_DIR}/include")
if(NOT MSVC)#-Wall nonsense on MSVC
add_definitions("-std=c++11")
endif(NOT MSVC)
add_library(lrdb_server SHARED src/debug_server_module.cpp ${HEADER_FILE})
target_link_libraries(lrdb_server ${LUA_LIBRARIES})
set_target_properties(lrdb_server PROPERTIES OUTPUT_NAME lrdb_server)
set_target_properties(lrdb_server PROPERTIES PREFIX "")
set(CMAKE_INSTALL_PREFIX "")
install(TARGETS lrdb_server LIBRARY DESTINATION ${INSTALL_LIBDIR})