Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
experimenting with CMake support, as autotools are so heinous to work…
… with
- Loading branch information
rtv
committed
Feb 27, 2008
1 parent
5a8f8c7
commit 02e028f
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PROJECT(Stage) | ||
ADD_SUBDIRECTORY(libstage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
) | ||
|