File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # - FindFife.cmake
2+ # Find the native fife includes and libraries
3+ #
4+ # FIFE_INCLUDE_DIR - where to find fife/core/version.h, etc.
5+ # FIFE_LIBRARIES - List of libraries when using fife.
6+ # FIFE_FOUND - True if fife found.
7+
8+ if (FIFE_INCLUDE_DIR)
9+ # Already in cache, be silent
10+ set (FIFE_FIND_QUIETLY TRUE )
11+ endif (FIFE_INCLUDE_DIR )
12+
13+ find_path (FIFE_INCLUDE_DIR fife/core/version.h )
14+
15+ # MSVC built fife may be named fife_static.
16+ # The provided project files name the library with the lib prefix.
17+ find_library (FIFE_LIBRARY NAMES fife fife_static libfife libfife_static )
18+
19+ # Handle the QUIETLY and REQUIRED arguments and set FIFE_FOUND
20+ # to TRUE if all listed variables are TRUE.
21+ include (FindPackageHandleStandardArgs )
22+ find_package_handle_standard_args (FIFE DEFAULT_MSG FIFE_LIBRARY FIFE_INCLUDE_DIR)
23+
24+ if (FIFE_FOUND)
25+ set (FIFE_LIBRARIES ${FIFE_LIBRARY} )
26+ endif (FIFE_FOUND )
27+
28+ mark_as_advanced (FIFE_INCLUDE_DIR FIFE_LIBRARY )
Original file line number Diff line number Diff line change 1+ # - FindFifeChan.cmake
2+ # Find the native fifechan includes and libraries
3+ #
4+ # FIFECHAN_INCLUDE_DIR - where to find fifechan/fifechan.h, etc.
5+ # FIFECHAN_LIBRARIES - List of libraries when using fifechan.
6+ # FIFECHAN_FOUND - True if fifechan found.
7+
8+ if (FIFECHAN_INCLUDE_DIR)
9+ # Already in cache, be silent
10+ set (FIFECHAN_FIND_QUIETLY TRUE )
11+ endif (FIFECHAN_INCLUDE_DIR )
12+
13+ find_path (FIFECHAN_INCLUDE_DIR fifechan/fifechan.hpp )
14+
15+ # MSVC built fifechan may be named fifechan_static.
16+ # The provided project files name the library with the lib prefix.
17+ find_library (FIFECHAN_LIBRARY NAMES fifechan fifechan_static libfifechan libfifechan_static )
18+
19+ # Handle the QUIETLY and REQUIRED arguments and set FIFECHAN_FOUND
20+ # to TRUE if all listed variables are TRUE.
21+ include (FindPackageHandleStandardArgs )
22+ find_package_handle_standard_args (FIFECHAN DEFAULT_MSG FIFECHAN_LIBRARY FIFECHAN_INCLUDE_DIR)
23+
24+ if (FIFECHAN_FOUND)
25+ set (FIFECHAN_LIBRARIES ${FIFECHAN_LIBRARY} )
26+ endif (FIFECHAN_FOUND )
27+
28+ mark_as_advanced (FIFECHAN_INCLUDE_DIR FIFECHAN_LIBRARY )
You can’t perform that action at this time.
0 commit comments