summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-03-05 17:11:32 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-03-05 17:11:32 +0100
commitf6e2e5d38db55613dd6d8e7a07e5ce3531edac24 (patch)
tree010e7787e4d0752d2d82d3627d284437b313c017 /src
parent14d393b11ebcbc34916213055b45f39d0afa8db2 (diff)
downloadweechat-f6e2e5d38db55613dd6d8e7a07e5ce3531edac24.zip
Fix of cmake build process
Diffstat (limited to 'src')
-rw-r--r--src/gui/CMakeLists.txt3
-rw-r--r--src/gui/curses/CMakeLists.txt16
-rw-r--r--src/gui/gtk/CMakeLists.txt16
-rw-r--r--src/plugins/scripts/CMakeLists.txt3
-rw-r--r--src/plugins/scripts/lua/CMakeLists.txt4
-rw-r--r--src/plugins/scripts/perl/CMakeLists.txt3
-rw-r--r--src/plugins/scripts/python/CMakeLists.txt3
-rw-r--r--src/plugins/scripts/ruby/CMakeLists.txt3
8 files changed, 43 insertions, 8 deletions
diff --git a/src/gui/CMakeLists.txt b/src/gui/CMakeLists.txt
index 962147e55..fef192a8f 100644
--- a/src/gui/CMakeLists.txt
+++ b/src/gui/CMakeLists.txt
@@ -23,7 +23,8 @@ gui-bar-item.c gui-bar-item.h gui-buffer.c gui-buffer.h gui-chat.c gui-chat.h
gui-color.c gui-color.h gui-completion.c gui-completion.h gui-history.c
gui-history.h gui-hotlist.c gui-hotlist.h gui-infobar.c gui-infobar.h
gui-input.c gui-input.h gui-keyboard.c gui-keyboard.h gui-main.h
-gui-nicklist.c gui-nicklist.h gui-status.h gui-window.c gui-window.h)
+gui-nicklist.c gui-nicklist.h gui-status.c gui-status.h gui-window.c
+gui-window.h)
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
ADD_LIBRARY(weechat_gui_common STATIC ${LIB_GUI_COMMON_SRC})
diff --git a/src/gui/curses/CMakeLists.txt b/src/gui/curses/CMakeLists.txt
index 4d2b8cca9..8a30cc68d 100644
--- a/src/gui/curses/CMakeLists.txt
+++ b/src/gui/curses/CMakeLists.txt
@@ -39,7 +39,21 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
LIST(APPEND EXTRA_LIBS "utf8")
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
-ADD_EXECUTABLE(${EXECUTABLE} ${WEECHAT_CURSES_SRC})
+ADD_EXECUTABLE(${EXECUTABLE} ${WEECHAT_CURSES_SRC}
+../../core/weechat.o
+../../core/wee-backtrace.o
+../../core/wee-command.o
+../../core/wee-config.o
+../../core/wee-config-file.o
+../../core/wee-debug.o
+../../core/wee-hook.o
+../../core/wee-input.o
+../../core/wee-list.o
+../../core/wee-log.o
+../../core/wee-upgrade.o
+../../core/wee-string.o
+../../core/wee-utf8.o
+../../core/wee-util.o)
INCLUDE_DIRECTORIES(.. ../../core ../../plugins)
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${STATIC_LIBS} ${EXTRA_LIBS})
diff --git a/src/gui/gtk/CMakeLists.txt b/src/gui/gtk/CMakeLists.txt
index 5d5ec2315..ab2358573 100644
--- a/src/gui/gtk/CMakeLists.txt
+++ b/src/gui/gtk/CMakeLists.txt
@@ -31,7 +31,21 @@ IF(PKG_CONFIG_FOUND)
ENDIF(GTK2_FOUND)
ENDIF(PKG_CONFIG_FOUND)
-ADD_EXECUTABLE(${EXECUTABLE} ${WEECHAT_GTK_SRC})
+ADD_EXECUTABLE(${EXECUTABLE} ${WEECHAT_GTK_SRC}
+../../core/weechat.o
+../../core/wee-backtrace.o
+../../core/wee-command.o
+../../core/wee-config.o
+../../core/wee-config-file.o
+../../core/wee-debug.o
+../../core/wee-hook.o
+../../core/wee-input.o
+../../core/wee-list.o
+../../core/wee-log.o
+../../core/wee-upgrade.o
+../../core/wee-string.o
+../../core/wee-utf8.o
+../../core/wee-util.o)
INCLUDE_DIRECTORIES(.. ../../core ../../plugins)
TARGET_LINK_LIBRARIES(${EXECUTABLE} ${STATIC_LIBS} ${EXTRA_LIBS})
diff --git a/src/plugins/scripts/CMakeLists.txt b/src/plugins/scripts/CMakeLists.txt
index 7f3858d69..653c2237d 100644
--- a/src/plugins/scripts/CMakeLists.txt
+++ b/src/plugins/scripts/CMakeLists.txt
@@ -14,7 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-SET(LIB_SCRIPTS_SRC script.c script.h)
+SET(LIB_SCRIPTS_SRC script.c script.h script-callback.c script-callback.h
+script-api.c script-api.h)
ADD_DEFINITIONS(${CMAKE_SHARED_LIBRARY_C_FLAGS})
INCLUDE_DIRECTORIES(${CMAKE_BINARY_DIR})
diff --git a/src/plugins/scripts/lua/CMakeLists.txt b/src/plugins/scripts/lua/CMakeLists.txt
index a3ebf96ae..0e827e61b 100644
--- a/src/plugins/scripts/lua/CMakeLists.txt
+++ b/src/plugins/scripts/lua/CMakeLists.txt
@@ -14,7 +14,9 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-ADD_LIBRARY(lua MODULE lua.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 "")
IF(LUA_FOUND)
diff --git a/src/plugins/scripts/perl/CMakeLists.txt b/src/plugins/scripts/perl/CMakeLists.txt
index f5384665f..46c82097e 100644
--- a/src/plugins/scripts/perl/CMakeLists.txt
+++ b/src/plugins/scripts/perl/CMakeLists.txt
@@ -14,7 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-ADD_LIBRARY(perl MODULE perl.c)
+ADD_LIBRARY(perl MODULE weechat-perl.c weechat-perl.h weechat-perl-api.c
+weechat-perl-api.h)
SET_TARGET_PROPERTIES(perl PROPERTIES PREFIX "")
diff --git a/src/plugins/scripts/python/CMakeLists.txt b/src/plugins/scripts/python/CMakeLists.txt
index cb61b4e9a..004fa190a 100644
--- a/src/plugins/scripts/python/CMakeLists.txt
+++ b/src/plugins/scripts/python/CMakeLists.txt
@@ -14,7 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-ADD_LIBRARY(python MODULE python.c)
+ADD_LIBRARY(python MODULE weechat-python.c weechat-python.h
+weechat-python-api.c weechat-python-api.h)
SET_TARGET_PROPERTIES(python PROPERTIES PREFIX "")
diff --git a/src/plugins/scripts/ruby/CMakeLists.txt b/src/plugins/scripts/ruby/CMakeLists.txt
index c88de75d6..3702e0e48 100644
--- a/src/plugins/scripts/ruby/CMakeLists.txt
+++ b/src/plugins/scripts/ruby/CMakeLists.txt
@@ -14,7 +14,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
-ADD_LIBRARY(ruby MODULE ruby.c)
+ADD_LIBRARY(ruby MODULE weechat-ruby.c weechat-ruby.h weechat-ruby-api.c
+weechat-ruby-api.h)
SET_TARGET_PROPERTIES(ruby PROPERTIES PREFIX "")