equal
deleted
inserted
replaced
65 |
65 |
66 IF(APPLE) |
66 IF(APPLE) |
67 FIND_PACKAGE(SDL) |
67 FIND_PACKAGE(SDL) |
68 |
68 |
69 if (SDL_FOUND) |
69 if (SDL_FOUND) |
70 set(CMAKE_C_FLAGS "-Wall -pipe") |
|
71 set(CMAKE_C_FLAGS_RELEASE "-w -O2 -fomit-frame-pointer") |
|
72 set(CMAKE_C_FLAGS_DEBUG "-O0 -g") |
|
73 |
|
74 set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}) |
70 set(LIBRARY_OUTPUT_PATH ${EXECUTABLE_OUTPUT_PATH}) |
75 include_directories(${SDL_INCLUDE_DIR}) |
71 include_directories(${SDL_INCLUDE_DIR}) |
76 link_libraries(${SDL_LIBRARY}) |
72 link_libraries(${SDL_LIBRARY}) |
77 |
73 |
78 add_library (SDLmain STATIC SDLMain.m) |
74 add_library (SDLmain STATIC SDLMain.m) |