diff options
Diffstat (limited to 'Depends.cmake')
-rw-r--r-- | Depends.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Depends.cmake b/Depends.cmake new file mode 100644 index 00000000..b4dacf7c --- /dev/null +++ b/Depends.cmake | |||
@@ -0,0 +1,20 @@ | |||
1 | if (IOS) | ||
2 | include (Depends-iOS.cmake) | ||
3 | return () | ||
4 | endif () | ||
5 | |||
6 | if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/the_Foundation/CMakeLists.txt) | ||
7 | set (INSTALL_THE_FOUNDATION YES) | ||
8 | find_package (the_Foundation REQUIRED) | ||
9 | else () | ||
10 | set (INSTALL_THE_FOUNDATION NO) | ||
11 | set (TFDN_STATIC_LIBRARY ON CACHE BOOL "") | ||
12 | set (TFDN_ENABLE_INSTALL OFF CACHE BOOL "") | ||
13 | set (TFDN_ENABLE_TESTS OFF CACHE BOOL "") | ||
14 | set (TFDN_ENABLE_WEBREQUEST OFF CACHE BOOL "") | ||
15 | add_subdirectory (lib/the_Foundation) | ||
16 | add_library (the_Foundation::the_Foundation ALIAS the_Foundation) | ||
17 | endif () | ||
18 | find_package (PkgConfig REQUIRED) | ||
19 | pkg_check_modules (SDL2 REQUIRED sdl2) | ||
20 | pkg_check_modules (MPG123 IMPORTED_TARGET libmpg123) | ||