libSDL, CMake and Mac OS X lion 2
问题 I'm trying to compile a cmake project on my mac, but it depends on the SDL. I have alreaday read "LibSDL, CMake and MacOSX Lion", however I couldn't solve this problem. CMakeList.txt cmake_minimum_required(VERSION 2.6.4 FATAL_ERROR) # Give a name to the project. project(movehead) # This include enable you to use our CMake framework find_package(qibuild) find_package(SDL REQUIRED) link_directories( /usr/local/lib ) link_libraries ( ${SDL_LIBRARY} SDLmain ) # Create an executable named movehead