Apply other patch by riebl to CMake, hopefully one of the last ;) stop manually linking the frameworks on OSX since the find modules add them, and remove sh-file from the list of files to compile
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10940 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
0b54129fa3
commit
b250a20e50
@ -172,20 +172,6 @@ if(USE_WIIUSE)
|
||||
add_definitions(-DENABLE_WIIUSE)
|
||||
endif()
|
||||
|
||||
if(UNIX AND NOT APPLE)
|
||||
target_link_libraries(supertuxkart Xxf86vm)
|
||||
elseif(APPLE)
|
||||
# We could use smarter detection of the frameworks but supporting a single official setup makes things easy...
|
||||
target_link_libraries(supertuxkart /Library/Frameworks/Ogg.framework)
|
||||
target_link_libraries(supertuxkart /Library/Frameworks/OpenAL.framework)
|
||||
target_link_libraries(supertuxkart /Library/Frameworks/Vorbis.framework)
|
||||
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/IOKit.framework)
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/QuickTime.framework)
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/Carbon.framework)
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/AudioUnit.framework)
|
||||
target_link_libraries(supertuxkart /System/Library/Frameworks/Cocoa.framework)
|
||||
endif()
|
||||
|
||||
# ==== Make dist target ====
|
||||
add_custom_target(dist
|
||||
|
@ -5,6 +5,13 @@ include_directories("include")
|
||||
add_definitions(-DHAS_SOCKLEN_T)
|
||||
|
||||
add_library(enet
|
||||
callbacks.c host.c list.c peer.c unix.c
|
||||
compress.c install-sh packet.c protocol.c win32.c
|
||||
)
|
||||
callbacks.c
|
||||
compress.c
|
||||
host.c
|
||||
list.c
|
||||
packet.c
|
||||
peer.c
|
||||
protocol.c
|
||||
unix.c
|
||||
win32.c
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user