summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-03-08 16:32:49 +0000
committerPierre Ossman <ossman@cendio.se>2011-03-08 16:32:49 +0000
commit8f64ef73b3b39191c66b202eea4299c36741ed15 (patch)
tree1972612dc0ce67c26950c14010972e3a76b77af6 /unix
parent7c1d6ced0ee6dee94404816e8c968f90eebd9086 (diff)
downloadtigervnc-8f64ef73b3b39191c66b202eea4299c36741ed15.tar.gz
tigervnc-8f64ef73b3b39191c66b202eea4299c36741ed15.zip
Get the Unix stuff to build using CMake. Based on a patch by Henrik Andersson.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4336 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'unix')
-rw-r--r--unix/CMakeLists.txt5
-rw-r--r--unix/tx/CMakeLists.txt13
-rw-r--r--unix/vncconfig/CMakeLists.txt12
-rw-r--r--unix/vncpasswd/CMakeLists.txt6
-rw-r--r--unix/vncviewer/CMakeLists.txt13
5 files changed, 49 insertions, 0 deletions
diff --git a/unix/CMakeLists.txt b/unix/CMakeLists.txt
new file mode 100644
index 00000000..176fad36
--- /dev/null
+++ b/unix/CMakeLists.txt
@@ -0,0 +1,5 @@
+add_subdirectory(tx)
+
+add_subdirectory(vncconfig)
+add_subdirectory(vncpasswd)
+add_subdirectory(vncviewer)
diff --git a/unix/tx/CMakeLists.txt b/unix/tx/CMakeLists.txt
new file mode 100644
index 00000000..ab46f03c
--- /dev/null
+++ b/unix/tx/CMakeLists.txt
@@ -0,0 +1,13 @@
+include_directories(${X11_INCLUDE_DIR})
+
+include_directories(${CMAKE_SOURCE_DIR}/common)
+include_directories(${CMAKE_SOURCE_DIR}/common/rfb)
+
+add_library(tx STATIC
+ TXWindow.cxx
+ TXScrollbar.cxx
+ TXViewport.cxx
+ TXImage.cxx
+ TXMenu.cxx)
+
+target_link_libraries(tx ${X11_LIBRARIES})
diff --git a/unix/vncconfig/CMakeLists.txt b/unix/vncconfig/CMakeLists.txt
new file mode 100644
index 00000000..55704130
--- /dev/null
+++ b/unix/vncconfig/CMakeLists.txt
@@ -0,0 +1,12 @@
+include_directories(${X11_INCLUDE_DIR})
+
+include_directories(${CMAKE_SOURCE_DIR}/common)
+include_directories(${CMAKE_SOURCE_DIR}/unix/tx)
+
+add_executable(vncconfig
+ buildtime.c
+ vncExt.c
+ vncconfig.cxx
+ QueryConnectDialog.cxx)
+
+target_link_libraries(vncconfig tx rfb network rdr ${X11_LIBRARIES})
diff --git a/unix/vncpasswd/CMakeLists.txt b/unix/vncpasswd/CMakeLists.txt
new file mode 100644
index 00000000..1125df25
--- /dev/null
+++ b/unix/vncpasswd/CMakeLists.txt
@@ -0,0 +1,6 @@
+include_directories(${CMAKE_SOURCE_DIR}/common)
+
+add_executable(vncpasswd
+ vncpasswd.cxx)
+
+target_link_libraries(vncpasswd tx rfb rdr os)
diff --git a/unix/vncviewer/CMakeLists.txt b/unix/vncviewer/CMakeLists.txt
new file mode 100644
index 00000000..0a292680
--- /dev/null
+++ b/unix/vncviewer/CMakeLists.txt
@@ -0,0 +1,13 @@
+include_directories(${X11_INCLUDE_DIR})
+
+include_directories(${CMAKE_SOURCE_DIR}/common)
+include_directories(${CMAKE_SOURCE_DIR}/unix/tx)
+include_directories(${CMAKE_SOURCE_DIR}/intl)
+
+add_executable(vncviewer
+ buildtime.c
+ CConn.cxx
+ DesktopWindow.cxx
+ vncviewer.cxx)
+
+target_link_libraries(vncviewer tx rfb network rdr os ${X11_LIBRARIES})