Skip to content
Browse files

tell cmake which libs to use explicitly on os x

  • Loading branch information...
1 parent f9279a9 commit 481be6b1030f486adfc8e5345be9722c0103e7b7 @joshpar joshpar committed Sep 21, 2012
Showing with 10 additions and 3 deletions.
  1. +5 −1 QtCollider/CMakeLists.txt
  2. +5 −2 editors/sc-ide/CMakeLists.txt
View
6 QtCollider/CMakeLists.txt
@@ -143,7 +143,11 @@ list( APPEND QT_COLLIDER_SRCS
add_definitions(-DSC_QT -DQT_COLLIDER_EXPORTING -DQT_NO_KEYWORDS)
-set (QT_COLLIDER_LIBS ${QT_LIBRARIES} ${MATH_LIBRARY})
+if(APPLE)
+ set (QT_COLLIDER_LIBS ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTWEBKIT_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${MATH_LIBRARY})
+else()
+ set (QT_COLLIDER_LIBS ${QT_LIBRARIES} ${MATH_LIBRARY})
+endif()
if(APPLE)
list(APPEND QT_COLLIDER_LIBS "-framework Cocoa" )
View
7 editors/sc-ide/CMakeLists.txt
@@ -159,8 +159,11 @@ else()
add_executable( ${ide_name} MACOSX_BUNDLE ${ide_sources} ${ide_rc_sources} )
endif()
-
-target_link_libraries( ${ide_name} ${QT_LIBRARIES} ${QT_QTNETWORK_LIBRARY} yaml)
+if(APPLE)
+ target_link_libraries( ${ide_name} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTWEBKIT_LIBRARY} ${QT_QTDBUS_LIBRARY} ${QT_QTNETWORK_LIBRARY} yaml)
+else()
+ target_link_libraries( ${ide_name} ${QT_LIBRARIES} ${QT_QTNETWORK_LIBRARY} yaml)
+endif()
if(APPLE)
target_link_libraries( ${ide_name} "-framework CoreServices")

0 comments on commit 481be6b

Please sign in to comment.
Something went wrong with that request. Please try again.