diff --git a/CMakeLists.txt b/CMakeLists.txt index c730190..8d5ded7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,6 +6,8 @@ include (${CMAKE_ROOT}/Modules/ExternalProject.cmake) include_directories (${CMAKE_BINARY_DIR}/include) link_directories (${CMAKE_BINARY_DIR}/lib) +set (CMAKE_LDFLAGS "-liconv -framework AudioToolBox -framework CoreAudio -framework CoreFoundation -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo -framework Carbon") + configure_file (cmd.sh.in cmd.sh @ONLY) set (CMD ${CMAKE_BINARY_DIR}/cmd.sh) diff --git a/cmd.sh.in b/cmd.sh.in index b60000a..269cc26 100755 --- a/cmd.sh.in +++ b/cmd.sh.in @@ -4,6 +4,7 @@ export PKG_CONFIG_PATH="@CMAKE_BINARY_DIR@/lib/pkgconfig" export INCLUDE_PATH="@CMAKE_BINARY_DIR@/include" export LIBRARY_PATH="@CMAKE_BINARY_DIR@/lib" export BINARY_PATH="@CMAKE_BINARY_DIR@/bin" +export LDFLAGS="@CMAKE_LDFLAGS@ -L$LIBRARY_PATH" cmd=$1 shift