diff options
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 99aeeae5..43638dfb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -13,15 +13,15 @@ option (ENABLE_RESOURCE_EMBED "Embed resources inside the executable" OFF) | |||
13 | 13 | ||
14 | include (BuildType.cmake) | 14 | include (BuildType.cmake) |
15 | include (Embed.cmake) | 15 | include (Embed.cmake) |
16 | if (EXISTS ${CMAKE_SOURCE_DIR}/lib/the_Foundation) | 16 | if (NOT EXISTS ${CMAKE_SOURCE_DIR}/lib/the_Foundation) |
17 | set (TFDN_STATIC_LIBRARY ON CACHE BOOL "Shared library not needed") | 17 | find_package (the_Foundation REQUIRED) |
18 | set (TFDN_ENABLE_INSTALL OFF CACHE BOOL "Library install not needed") | 18 | else () |
19 | set (TFDN_ENABLE_TESTS OFF CACHE BOOL "Library tests not needed") | 19 | set (TFDN_STATIC_LIBRARY ON CACHE BOOL "") |
20 | set (TFDN_ENABLE_WEBREQUEST OFF CACHE BOOL "libcurl not needed") | 20 | set (TFDN_ENABLE_INSTALL OFF CACHE BOOL "") |
21 | set (TFDN_ENABLE_TESTS OFF CACHE BOOL "") | ||
22 | set (TFDN_ENABLE_WEBREQUEST OFF CACHE BOOL "") | ||
21 | add_subdirectory (lib/the_Foundation) | 23 | add_subdirectory (lib/the_Foundation) |
22 | add_library (the_Foundation::the_Foundation ALIAS the_Foundation) | 24 | add_library (the_Foundation::the_Foundation ALIAS the_Foundation) |
23 | else () | ||
24 | find_package (the_Foundation REQUIRED) | ||
25 | endif () | 25 | endif () |
26 | find_package (PkgConfig REQUIRED) | 26 | find_package (PkgConfig REQUIRED) |
27 | pkg_check_modules (SDL2 REQUIRED sdl2) | 27 | pkg_check_modules (SDL2 REQUIRED sdl2) |