From 68f51dd1fe9d2ac74c2800fe43f0c065b648efb6 Mon Sep 17 00:00:00 2001 From: ABeltramo Date: Sat, 15 Jun 2024 14:11:07 +0100 Subject: [PATCH] feat: Cmake, allow custom location for libevdev --- CMakeLists.txt | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 474849f..7f305d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,10 +37,10 @@ if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}") - if(NOT DEFINED CMAKE_BUILD_TYPE AND NOT DEFINED CMAKE_CONFIGURATION_TYPES) + if (NOT DEFINED CMAKE_BUILD_TYPE AND NOT DEFINED CMAKE_CONFIGURATION_TYPES) set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE) set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo") - endif() + endif () endif () # Make an automatic library - will be static or dynamic based on user setting @@ -59,9 +59,9 @@ target_compile_definitions(libinputtino PUBLIC "$<$