Permalink
Browse files

experimenting with CMake support, as autotools are so heinous to work…

… with
  • Loading branch information...
1 parent 5a8f8c7 commit 02e028f223b4d1850ce1c6b163630755ad0586c1 rtv committed Feb 27, 2008
Showing with 64 additions and 0 deletions.
  1. +2 −0 CMakeLists.txt
  2. +62 −0 libstage/CMakeLists.txt
View
@@ -0,0 +1,2 @@
+PROJECT(Stage)
+ADD_SUBDIRECTORY(libstage)
@@ -0,0 +1,62 @@
+
+include(FindPkgConfig)
+pkg_check_modules( GLIB gdk-pixbuf-2.0 )
+
+# hack to find FLTK on OS X using MacPorts
+SET(FLTK_INCLUDE_DIR /opt/local/include)
+
+find_package(OPENGL REQUIRED)
+find_package(FLTK REQUIRED)
+
+MESSAGE("hello")
+MESSAGE("FL INC ${FLTK_INCLUDE_DIR}")
+MESSAGE("FL LIBS ${FLTK_LIBRARIES}")
+MESSAGE("GL INC ${OPENGL_INCLUDE_DIR}")
+MESSAGE("GL LIBS ${OPENGL_LIBRARIES}")
+
+include_directories( .
+ ..
+ ../replace
+ ${GLIB_INCLUDE_DIRS}
+ ${FLTK_INCLUDE_DIR}
+ ${OPENGL_INCLUDE_DIR}
+)
+
+
+link_directories(${GLIB_LIBRARY_DIRS}
+ ${FLTK_LIBRARY_DIRS}
+ ${OPENGL_LIBRARY_DIRS}
+)
+
+add_executable(stage
+ ancestor.cc
+ block.cc
+ canvas.cc
+ gl.cc
+ glcolorstack.cc
+ model.cc
+ model_callbacks.cc
+ model_fiducial.cc
+ model_laser.cc
+ model_load.cc
+ model_position.cc
+ model_ranger.cc
+ model_blobfinder.cc
+ model_props.cc
+ stage.cc
+ typetable.cc
+ world.cc
+ worldfile.cc
+ worldgui.cc
+ main.cc
+)
+
+
+
+target_link_libraries( stage
+ ${GLIB_LIBRARIES}
+ ${FLTK_LIBRARIES}
+ ${OPENGL_LIBRARIES}
+ ltdl
+)
+

0 comments on commit 02e028f

Please sign in to comment.