tBuild portability libraries with cmake. - vaccinewars - be a doctor and try to vaccinate the world | |
git clone git://src.adamsgaard.dk/vaccinewars | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 5ca34b73b01bf6ab190feafbb474d4d31258c66d | |
parent cbfeb6799bcf3b235d8e4c860f8d976280dd7014 | |
Author: Ben Webb | |
Date: Fri, 27 Mar 2015 17:00:50 -0700 Build portability libraries with cmake. Diffstat: M CMakeLists.txt | 9 ++++++++- A src/cursesport/CMakeLists.txt | 1 + A src/gtkport/CMakeLists.txt | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) --- | |
diff --git a/CMakeLists.txt b/CMakeLists.txt | |
t@@ -42,7 +42,8 @@ if (CURSES_CLIENT) find_package(Curses) if (CURSES_FOUND) add_subdirectory(src/curses_client) - set(EXTRA_LIBS ${EXTRA_LIBS} ${CURSES_LIBRARIES} cursesclient) + add_subdirectory(src/cursesport) + set(EXTRA_LIBS ${EXTRA_LIBS} ${CURSES_LIBRARIES} cursesclient cursesport) include_directories(${CURSES_INCLUDE_DIRS}) else() message(WARNING "Cannot find any curses-type library") t@@ -55,6 +56,12 @@ if (GUI_CLIENT OR GUI_SERVER) if (GTK2_FOUND) set(EXTRA_LIBS ${EXTRA_LIBS} ${GTK2_LIBRARIES}) include_directories(${GTK2_INCLUDE_DIRS}) + if (GUI_CLIENT) + add_subdirectory(src/gui_client) + set(EXTRA_LIBS ${EXTRA_LIBS} guiclient) + endif() + add_subdirectory(src/gtkport) + set(EXTRA_LIBS ${EXTRA_LIBS} gtkport) else() message(WARNING "Cannot find GTK+; not building GUI client or server") set(GUI_CLIENT OFF) | |
diff --git a/src/cursesport/CMakeLists.txt b/src/cursesport/CMakeLists.txt | |
t@@ -0,0 +1 @@ +add_library(cursesport cursesport.c) | |
diff --git a/src/gtkport/CMakeLists.txt b/src/gtkport/CMakeLists.txt | |
t@@ -0,0 +1 @@ +add_library(gtkport clist.c gtkport.c unicodewrap.c) |