Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amdmi3/cmake-modules
Custom CMake modules for locating certain libraries
https://github.com/amdmi3/cmake-modules
cmake
Last synced: about 4 hours ago
JSON representation
Custom CMake modules for locating certain libraries
- Host: GitHub
- URL: https://github.com/amdmi3/cmake-modules
- Owner: AMDmi3
- Created: 2012-10-19T00:24:43.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-10T05:35:06.000Z (over 11 years ago)
- Last Synced: 2023-03-11T16:07:51.169Z (over 1 year ago)
- Topics: cmake
- Size: 105 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
These are custom CMake modules used to locate certain libraries:
- FFmpeg
- FFTW
- GSL
- OpenCV
- GLEW
- GLES
- GLES2
- SDL_glesTo use a module, place .cmake file under cmake/ subfolder in your
project and addSET(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
line into your core CMakeLists.txt
After that, you'll be able to locate and use these libraries just
like you do with libraries CMake provide bundled modules for. For
example:FIND_PACKAGE(FFMPEG REQUIRED COMPONENTS avutil avcodec avformat swscale)
INCLUDE_DIRECTORIES(${FFMPEG_INCLUDE_DIRS})
ADD_EXECUTABLE(my_app ${MY_APP_SRCS})
TARGET_LINK_LIBRARIES(my_app ${FFMPEGVIDEO_LIBRARIES})See inside .cmake files to find what variables these modules define
and what components they have.These modules come under CC0 or Public Domain, whichever you find
applicable, e.g. you may freely use them in your projects, without
any restrictions and without attribution.