diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2010-04-05 22:33:58 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2010-04-05 22:33:58 +0000 |
| commit | a0d26b634afd9234234f3343c25961b7ffdb7be0 (patch) | |
| tree | dc8fb2ee36d894ae5377a94baaf0809143aa2ec2 /fluid | |
| parent | 2bf6fa6074303c8c7bcd16736be6e244dcaf3c39 (diff) | |
Mostly rewritten CMake files by Michael Surette. They are more complete
than what we had previously, but may need some more testing. The latest
changes (removing old APPLE_QD definitions and code) might need another
update.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7451 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/CMakeLists.txt | 32 |
1 files changed, 25 insertions, 7 deletions
diff --git a/fluid/CMakeLists.txt b/fluid/CMakeLists.txt index 347f258dc..d2d85ae34 100644 --- a/fluid/CMakeLists.txt +++ b/fluid/CMakeLists.txt @@ -1,4 +1,5 @@ -SET(CPPFILES + +set(CPPFILES CodeEditor.cxx Fl_Function_Type.cxx Fl_Group_Type.cxx @@ -20,11 +21,28 @@ SET(CPPFILES widget_panel.cxx ) +add_executable(fluid ${CPPFILES}) +target_link_libraries(fluid fltk fltk_images fltk_forms) + +# link in optional libraries +if(HAVE_CAIRO) + target_link_libraries(fluid fltk_cairo) +endif(HAVE_CAIRO) + +if(FLTK_USE_GL) + target_link_libraries(fluid fltk_gl) + target_link_libraries(fluid ${OPENGL_LIBRARIES}) +endif(FLTK_USE_GL) -ADD_EXECUTABLE(fluid ${CPPFILES}) -INSTALL_TARGETS(/bin fluid) -TARGET_LINK_LIBRARIES(fluid fltk fltk_images fltk_forms ${FLTK_PLATFORM_DEPENDENT_LIBS}) -IF(OPENGL_FOUND) - TARGET_LINK_LIBRARIES(fluid fltk_gl) -ENDIF(OPENGL_FOUND) +if(USE_XFT) + target_link_libraries(fluid ${X11_Xft_LIB}) +endif(USE_XFT) +if(HAVE_XINERAMA) + target_link_libraries(fluid ${X11_Xinerama_LIB}) +endif(HAVE_XINERAMA) + +install(TARGETS fluid + EXPORT fltk-install + DESTINATION ${PREFIX_BIN} +) |
