aboutsummaryrefslogtreecommitdiff
path: root/src/bin_geod.cmake
diff options
context:
space:
mode:
authorHoward Butler <howard@hobu.co>2014-09-13 21:37:05 +0000
committerHoward Butler <howard@hobu.co>2014-09-13 21:37:05 +0000
commitc90714e3b141e2ee02d110a73818f71f726a35fb (patch)
tree8ec286add1ab74928d39d9125aaafc44de4f2326 /src/bin_geod.cmake
parent86dea6ab8cc609cf5da3f20dfdd2299c4f5bfc12 (diff)
downloadPROJ-c90714e3b141e2ee02d110a73818f71f726a35fb.tar.gz
PROJ-c90714e3b141e2ee02d110a73818f71f726a35fb.zip
mostly working CMake configuration #243
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2525 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src/bin_geod.cmake')
-rw-r--r--src/bin_geod.cmake16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/bin_geod.cmake b/src/bin_geod.cmake
new file mode 100644
index 00000000..d06f4dd6
--- /dev/null
+++ b/src/bin_geod.cmake
@@ -0,0 +1,16 @@
+set(GEOD_SRC geod.c
+ geodesic.c geod_set.c geod_interface.c )
+set(GEOD_INCLUDE geodesic.h geod_interface.h)
+
+source_group("Source Files\\Bin" FILES ${GEOD_SRC} ${GEOD_INCLUDE})
+
+if(WIN32)
+ set(GEOD_SRC ${GEOD_SRC} emess.c)
+endif(WIN32)
+
+#Executable
+add_executable(geod ${GEOD_SRC} ${GEOD_INCLUDE})
+target_link_libraries(geod ${PROJ_LIBRARIES})
+install(TARGETS geod
+ RUNTIME DESTINATION ${BINDIR})
+