Explicitly list source files

parent a7d9052c
......@@ -17,11 +17,12 @@ include_directories("${CMAKE_SOURCE_DIR}/modules")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/melanobot")
link_directories(${CMAKE_CURRENT_BINARY_DIR})
file(GLOB SUBDIRS RELATIVE "${CMAKE_SOURCE_DIR}/modules" ${CMAKE_SOURCE_DIR}/modules/*)
foreach(subdir ${SUBDIRS})
if(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/modules/${subdir}")
add_subdirectory(${subdir})
endif()
endforeach()
target_link_libraries(${MODULE_NAME} melanomodule_core)
add_subdirectory(core)
add_subdirectory(file_storage)
add_subdirectory(fun)
add_subdirectory(irc)
add_subdirectory(lists)
add_subdirectory(posix)
add_subdirectory(script)
add_subdirectory(web)
add_subdirectory(xonotic)
......@@ -12,9 +12,13 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
melanomodule(core "Core module, should always be enabled" ON)
melanomodule(core "Core module" ON)
file(GLOB_RECURSE SOURCES *.cpp)
set(SOURCES
handler/bridge.cpp
handler/group.cpp
core.cpp
)
add_library(${MODULE_NAME} MODULE ${SOURCES})
add_library(${MODULE_NAME} SHARED ${SOURCES})
......@@ -14,6 +14,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
melanomodule(file_storage "Plain file-based storage" OFF)
file(GLOB_RECURSE SOURCES *.cpp)
set(SOURCES
file_storage.cpp
file_storage_module.cpp
)
add_library(${MODULE_NAME} MODULE ${SOURCES})
......@@ -14,7 +14,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
melanomodule(fun "Possibly useless yet silly stuff" ON)
file(GLOB_RECURSE SOURCES *.cpp)
set(SOURCES
fun.cpp
rainbow.cpp
fun-handlers.cpp
)
add_library(${MODULE_NAME} MODULE ${SOURCES})
......
......@@ -14,7 +14,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
melanomodule(irc "Internet Relay Chat support" ON)
file(GLOB_RECURSE SOURCES *.cpp)
set(SOURCES
irc_formatter.cpp
irc.cpp
network/connection.cpp
network/buffer.cpp
)
add_library(${MODULE_NAME} MODULE ${SOURCES})
......
......@@ -14,7 +14,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
melanomodule(lists "Manage ToDo Lists and similar" OFF)
file(GLOB_RECURSE SOURCES *.cpp)
set(SOURCES
lists.cpp
)
add_library(${MODULE_NAME} MODULE ${SOURCES})
......
......@@ -12,8 +12,10 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
melanomodule(posix "Extra features for POSIX systems" OFF)
melanomodule(posix "Extra features for POSIX systems" ${UNIX})
file(GLOB_RECURSE SOURCES *.cpp)
set(SOURCES
posix.cpp
)
add_library(${MODULE_NAME} MODULE ${SOURCES})
......@@ -14,7 +14,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
melanomodule(script "Scripting interface" ON)
file(GLOB_RECURSE SOURCES *.cpp)
set(SOURCES
python.cpp
script_variables.cpp
script.cpp
)
add_library(${MODULE_NAME} MODULE ${SOURCES})
......
......@@ -14,8 +14,11 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
melanomodule(web "Web stuff (HTTP and friends)" ON)
file(GLOB_RECURSE SOURCES *.cpp)
set(SOURCES
http.cpp
web.cpp
web-api-concrete.cpp
)
# cpr
# set(CPR_VERSION 1.2.0)
......
......@@ -14,7 +14,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
melanomodule(xonotic "Xonotic integration" ON)
file(GLOB_RECURSE SOURCES *.cpp)
set(SOURCES
xonotic.cpp
darkplaces.cpp
formatter.cpp
xonotic-connection.cpp
)
add_library(${MODULE_NAME} MODULE ${SOURCES})
......
......@@ -13,7 +13,30 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
file(GLOB_RECURSE SOURCES *.cpp)
set(SOURCES
message/input_message.cpp
user/user.cpp
user/user_group.cpp
user/user_manager.cpp
storage.cpp
melanolib/library.cpp
melanolib/time/time_string.cpp
melanolib/time/time.cpp
melanolib/math.cpp
melanolib/string/language.cpp
melanolib/string/stringutils.cpp
load_module.cpp
handler/handler.cpp
settings.cpp
main.cpp
melanobot.cpp
string/encoding.cpp
string/formatter.cpp
string/string.cpp
string/logger.cpp
string/color.cpp
network/connection.cpp
)
set(EXECUTABLE_NAME melanobot) # repeated otherwise kdevelop messes up
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment