Skip to content

Commit

Permalink
experimenting with CMake support, as autotools are so heinous to work…
Browse files Browse the repository at this point in the history
… with
  • Loading branch information
rtv committed Feb 27, 2008
1 parent 5a8f8c7 commit 02e028f
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
@@ -0,0 +1,2 @@
PROJECT(Stage)
ADD_SUBDIRECTORY(libstage)
62 changes: 62 additions & 0 deletions libstage/CMakeLists.txt
@@ -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.