Mercurial > almixer_isolated
comparison CMakeLists.txt @ 4:26aec5629f68
Added example programs.
author | Eric Wing <ewing . public |-at-| gmail . com> |
---|---|
date | Wed, 27 Oct 2010 21:41:31 -0700 |
parents | a929285e1db0 |
children | 8cb13d89451a |
comparison
equal
deleted
inserted
replaced
3:a929285e1db0 | 4:26aec5629f68 |
---|---|
80 | 80 |
81 | 81 |
82 | 82 |
83 IF(WANTS_BUILD_SHARED_LIBRARY) | 83 IF(WANTS_BUILD_SHARED_LIBRARY) |
84 ADD_LIBRARY(ALMIXER_LIBRARY SHARED ${PUBLIC_HEADERS} ${ALMIXER_SOURCE} ${RESOURCE_FILES}) | 84 ADD_LIBRARY(ALMIXER_LIBRARY SHARED ${PUBLIC_HEADERS} ${ALMIXER_SOURCE} ${RESOURCE_FILES}) |
85 SET_TARGET_PROPERTIES(ALMIXER_LIBRARY PROPERTIES OUTPUT_NAME "ALmixer") | 85 ELSE(WANTS_BUILD_SHARED_LIBRARY) |
86 ADD_LIBRARY(ALMIXER_LIBRARY STATIC ${PUBLIC_HEADERS} ${ALMIXER_SOURCE} ${RESOURCE_FILES}) | |
86 ENDIF(WANTS_BUILD_SHARED_LIBRARY) | 87 ENDIF(WANTS_BUILD_SHARED_LIBRARY) |
88 SET_TARGET_PROPERTIES(ALMIXER_LIBRARY PROPERTIES OUTPUT_NAME "ALmixer") | |
87 | 89 |
88 # Set Dynamic Library and Framework properties | 90 # Set Dynamic Library and Framework properties |
89 IF(WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) | 91 IF(WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) |
90 | 92 |
91 SET_TARGET_PROPERTIES(ALMIXER_LIBRARY PROPERTIES | 93 SET_TARGET_PROPERTIES(ALMIXER_LIBRARY PROPERTIES |
183 | 185 |
184 | 186 |
185 ENDIF(WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) | 187 ENDIF(WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) |
186 | 188 |
187 INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIR} ${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR}) | 189 INCLUDE_DIRECTORIES(${OPENAL_INCLUDE_DIR} ${SDL_INCLUDE_DIR} ${SDL_SOUND_INCLUDE_DIR}) |
188 #TARGET_LINK_LIBRARIES(ALMIXER_LIBRARY "${OPENAL_LIBRARY} ${SDL_LIBRARIES} ${SDL_SOUND_LIBRARIES}") | 190 TARGET_LINK_LIBRARIES(ALMIXER_LIBRARY ${OPENAL_LIBRARY} ${SDL_SOUND_LIBRARIES} ${SDL_LIBRARY}) |
189 MESSAGE("SDL_libraries: ${SDL_LIBRARY}, ${SDL_SOUND_LIBRARIES}.") | |
190 TARGET_LINK_LIBRARIES(ALMIXER_LIBRARY ${OPENAL_LIBRARY} "${SDL_SOUND_LIBRARIES}" ${SDL_LIBRARY}) | |
191 | |
192 | 191 |
193 | 192 |
194 # Install commands below | 193 # Install commands below |
195 IF(APPLE AND WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) | 194 IF(APPLE AND WANTS_BUILD_SHARED_LIBRARY AND WANTS_BUILD_FRAMEWORK) |
196 # Will install framework to /Library/Frameworks directory or user specified | 195 # Will install framework to /Library/Frameworks directory or user specified |
216 "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" | 215 "${CMAKE_CURRENT_SOURCE_DIR}/cmake_uninstall.cmake.in" |
217 "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" | 216 "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake" |
218 IMMEDIATE @ONLY) | 217 IMMEDIATE @ONLY) |
219 ADD_CUSTOM_TARGET(uninstall | 218 ADD_CUSTOM_TARGET(uninstall |
220 "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") | 219 "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") |
220 | |
221 | |
222 # The Examples | |
223 ADD_SUBDIRECTORY(EXAMPLES) | |
221 | 224 |
222 | 225 |
223 | 226 |
224 # Set defaults for Universal Binaries. We want 32-bit Intel/PPC on 10.4 | 227 # Set defaults for Universal Binaries. We want 32-bit Intel/PPC on 10.4 |
225 # and 32/64-bit Intel/PPC on >= 10.5. Anything <= 10.3 doesn't support. | 228 # and 32/64-bit Intel/PPC on >= 10.5. Anything <= 10.3 doesn't support. |