https://github.com/amdmi3/cmake-modules
Custom CMake modules for locating certain libraries
https://github.com/amdmi3/cmake-modules
cmake
Last synced: 3 months 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 (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-03-10T05:35:06.000Z (over 13 years ago)
- Last Synced: 2025-01-18T04:44:06.957Z (over 1 year ago)
- Topics: cmake
- Size: 105 KB
- Stars: 0
- Watchers: 4
- 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_gles
To use a module, place .cmake file under cmake/ subfolder in your
project and add
SET(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.