Revision: 40979
http://brlcad.svn.sourceforge.net/brlcad/?rev=40979&view=rev
Author: erikgreenwald
Date: 2010-10-13 19:12:27 +0000 (Wed, 13 Oct 2010)
Log Message:
-----------
build plugin
Modified Paths:
--------------
isst/trunk/CMakeLists.txt
Modified: isst/trunk/CMakeLists.txt
===================================================================
--- isst/trunk/CMakeLists.txt 2010-10-13 18:36:04 UTC (rev 40978)
+++ isst/trunk/CMakeLists.txt 2010-10-13 19:12:27 UTC (rev 40979)
@@ -38,13 +38,23 @@
RETURN()
endif (NOT BRLCAD_FOUND)
-add_executable(isst_sdl WIN32 MACOSX_BUNDLE ${ISST_SDL_SOURCES})
-add_executable(isst_gtk WIN32 MACOSX_BUNDLE ${ISST_GTK_SOURCES})
include_directories(${OPENGL_INCLUDE_DIR} ${SDL_INCLUDE_DIR}
${GTK2_INCLUDE_DIRS} ${BRLCAD_INC_DIRS})
set(MYLIBS ${OPENGL_gl_LIBRARY} ${_BRLCAD_LIBRARY_bu} ${_BRLCAD_LIBRARY_bn}
${_BRLCAD_LIBRARY_rt} ${_BRLCAD_LIBRARY_tie} ${_BRLCAD_LIBRARY_render})
-target_link_libraries(isst_sdl ${SDL_LIBRARY} ${MYLIBS})
+
+add_executable(isst_gtk WIN32 MACOSX_BUNDLE ${ISST_GTK_SOURCES})
target_link_libraries(isst_gtk ${GTK2_LIBRARIES} ${MYLIBS})
+add_library(myplugin SHARED sdl/myplugin.c)
+target_link_libraries(myplugin ${_BRLCAD_LIBRARY_bu} ${_BRLCAD_LIBRARY_bn}
${_BRLCAD_LIBRARY_rt} ${_BRLCAD_LIBRARY_tie} ${_BRLCAD_LIBRARY_render})
+
+add_executable(isst_sdl WIN32 MACOSX_BUNDLE ${ISST_SDL_SOURCES})
+target_link_libraries(isst_sdl ${SDL_LIBRARY} ${MYLIBS})
+
+if(APPLE)
+ add_custom_command(TARGET isst_sdl POST_BUILD DEPENDS myplugin isst_sdl
COMMAND mkdir -p ./isst_sdl.app/Contents/Resources && install
./libmyplugin.dylib ./isst_sdl.app/Contents/Resources/libmyplugin.dylib DEPENDS)
+ add_dependencies(isst_sdl myplugin)
+endif(APPLE)
+
set_property(DIRECTORY
PROPERTY COMPILE_DEFINITIONS HAVE_FCNTL_H=${HAVE_FCNTL_H}
PROPERTY COMPILE_DEFINITIONS HAVE_GETOPT=${HAVE_GETOPT}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits