Skip to content

Instantly share code, notes, and snippets.

@brucespang
Created November 23, 2011 02:51
Show Gist options
  • Save brucespang/1387771 to your computer and use it in GitHub Desktop.
Save brucespang/1387771 to your computer and use it in GitHub Desktop.
Gluon on OS X
$ cmake .. -DCMAKE_INSTALL_PREFIX=/usr
$ make
$ sudo make install
# requires homebrew (http://mxcl.github.com/homebrew/)
$ sudo brew install cmake
$ sudo brew install qt
$ sudo brew install libsndfile
$ sudo brew install attica
$ sudo brew install freealut
# alure is not currently built in to homebrew, so we need to install it from a gist
$ sudo brew install https://raw.github.com/gist/1385677/4d0fc4978539492f04f0c9cd8bb929bdf3c0b7f6/alure.rb
diff --git a/smarts/lib/CMakeLists.txt b/smarts/lib/CMakeLists.txt
index 4e4892b..bc6febd 100644
--- a/smarts/lib/CMakeLists.txt
+++ b/smarts/lib/CMakeLists.txt
@@ -48,15 +48,10 @@ if(APPLE)
add_library(GluonSmarts SHARED ${GluonSmarts_SRCS} ${GluonSmarts_HEADERS})

set_target_properties(GluonSmarts PROPERTIES FRAMEWORK TRUE)
- set_target_properties(GluonSmarts PROPERTIES BUILD_WITH_INSTALL_RPATH 1 INSTALL_NAME_DIR "@executable_path/../Frameworks")
+ set_target_properties(GluonSmarts PROPERTIES BUILD_WITH_INSTALL_RPATH 1 INSTALL_NAME_DIR "@executable_path/../Frameworks")
set_target_properties(GluonSmarts PROPERTIES PUBLIC_HEADER "${GluonSmarts_HEADERS}")

- add_custom_command(TARGET GluonSmarts POST_BUILD
- COMMAND mkdir ARGS -p ${CMAKE_CURRENT_BINARY_DIR}/$(CONFIGURATION)/SMARTS.framework/Headers/smarts/
- COMMAND mv ${CMAKE_CURRENT_BINARY_DIR}/$(CONFIGURATION)/SMARTS.framework/Headers/*.h ${CMAKE_CURRENT_BINARY_DIR}/$(CONFIGURATION)/SMARTS.framework/Headers/smarts/
- )
-
- set(MACOSX_FRAMEWORK_IDENTIFIER SMARTS)
+ set(MACOSX_FRAMEWORK_IDENTIFIER SMARTS)
set_target_properties(GluonSmarts PROPERTIES OUTPUT_NAME SMARTS)
else()
add_library(GluonSmarts SHARED ${GluonSmarts_SRCS} )
# gluonplayer is packaged in GluonPlayer.app
$ ./tools/viewer/GluonPlayer.app/Contents/MacOS/GluonPlayer /usr/share/gluon/games/apocalypse.gluon/game.gluonproject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment