From 91d8dbdaec7edc861de7383033e8c48c0aaa41cc Mon Sep 17 00:00:00 2001 From: Alexis Maiquez Date: Wed, 24 Aug 2022 03:28:36 +0200 Subject: [PATCH] Update binary name and provide a rudimentary fallback for old binary name (unsupported) Signed-off-by: Alexis Maiquez --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6059f0b..742c8df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.12) -project(wallengine) +project(linux-wallpaperengine) set(CMAKE_CXX_STANDARD 17) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") @@ -33,7 +33,7 @@ include_directories( include) add_executable( - wallengine + linux-wallpaperengine main.cpp src/WallpaperEngine/Assets/CPackageLoadException.cpp @@ -194,7 +194,7 @@ add_executable( src/WallpaperEngine/Core/Objects/Images/Materials/CPass.h ) -target_link_libraries(wallengine +target_link_libraries(linux-wallpaperengine ${X11_LIBRARIES} ${Xrandr_LIBRARIES} ${X11_Xxf86vm_LIB} @@ -209,6 +209,8 @@ target_link_libraries(wallengine ${FREEIMAGE_LIBRARIES} glfw) +file(CREATE_LINK linux-wallpaperengine wallengine SYMBOLIC) + set(CMAKE_REQUIRED_LIBRARIES ${X11_LIBRARIES}) # make sure some of the X11 functions we'll use are available