diff options
author | Max Danielsson <max@autious.net> | 2022-04-22 12:29:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 12:29:09 +0300 |
commit | 6ae1e343714baca35ff790cb555e1550e1526d1b (patch) | |
tree | ca3ee5fe65366fd57847d8d212c88c82e7e90146 | |
parent | 113ce3ca3e1d9820a211d2e1479c3ff3795a133c (diff) | |
parent | e7e07d33f1f0a6687314d565699130a34369f1db (diff) |
Merge pull request #8 from m-ildefons/cmake-linux-dependencies
cmake: configure freetype and openal on linux
-rw-r--r-- | Projects/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Projects/CMakeLists.txt b/Projects/CMakeLists.txt index 9c20ba54..4ebae6ca 100644 --- a/Projects/CMakeLists.txt +++ b/Projects/CMakeLists.txt @@ -267,6 +267,8 @@ IF(LINUX) FIND_PACKAGE(GTK2 REQUIRED) FIND_PACKAGE(SDL2 REQUIRED) FIND_PACKAGE(SDL2NET REQUIRED) + FIND_PACKAGE(Freetype REQUIRED) + FIND_PACKAGE(OpenAL REQUIRED) ENDIF() #Build static libraries only for FFTW @@ -434,6 +436,10 @@ ENDIF() #define _DEPLOY for Release target IF(DEPLOY) SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_DEPLOY") +ELSE() + # if not building release target, export compile commands for use with a + # language server + set(CMAKE_EXPORT_COMPILE_COMMANDS ON) ENDIF() SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG") |