Clean up and tweak build system
[oweals/minetest.git] / src / script / CMakeLists.txt
1 add_subdirectory(common)
2 add_subdirectory(cpp_api)
3 add_subdirectory(lua_api)
4
5 # Used by server and client
6 set(common_SCRIPT_SRCS 
7         ${CMAKE_CURRENT_SOURCE_DIR}/scripting_game.cpp
8         ${common_SCRIPT_COMMON_SRCS}
9         ${common_SCRIPT_CPP_API_SRCS}
10         ${common_SCRIPT_LUA_API_SRCS}
11         PARENT_SCOPE)
12
13 # Used by client only
14 set(client_SCRIPT_SRCS 
15         ${CMAKE_CURRENT_SOURCE_DIR}/scripting_mainmenu.cpp
16         ${client_SCRIPT_COMMON_SRCS}
17         ${client_SCRIPT_CPP_API_SRCS}
18         ${client_SCRIPT_LUA_API_SRCS}
19         PARENT_SCOPE)
20