summaryrefslogtreecommitdiff
path: root/Depends.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Depends.cmake')
-rw-r--r--Depends.cmake20
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 @@
1if (IOS)
2 include (Depends-iOS.cmake)
3 return ()
4endif ()
5
6if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/the_Foundation/CMakeLists.txt)
7 set (INSTALL_THE_FOUNDATION YES)
8 find_package (the_Foundation REQUIRED)
9else ()
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)
17endif ()
18find_package (PkgConfig REQUIRED)
19pkg_check_modules (SDL2 REQUIRED sdl2)
20pkg_check_modules (MPG123 IMPORTED_TARGET libmpg123)