From 6b3636c1bf45078a9a086abcd0571cd425ad887b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Gr=C3=A9goire=20Kubler?= <gregoire.kubler@proton.me>
Date: Fri, 14 Jun 2024 13:50:55 +0200
Subject: [PATCH] chore : cleanup

---
 CMakeLists.txt | 9 ++-------
 setup.py       | 3 ---
 2 files changed, 2 insertions(+), 10 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9cf11636..eef0e63b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,7 +5,7 @@ file(STRINGS "${CMAKE_SOURCE_DIR}/version.txt" version)
 
 project(aidge_backend_cpu
         VERSION ${version}
-        DESCRIPTION "CPU implementations of the operators of aidge framework" 
+        DESCRIPTION "CPU implementations of the operators of aidge framework."
         LANGUAGES CXX)
 
 message(STATUS "Project name: ${CMAKE_PROJECT_NAME}")
@@ -22,7 +22,7 @@ execute_process(
 message(STATUS "Latest git commit: ${GIT_COMMIT_HASH}")
 add_definitions(-DGIT_COMMIT_HASH="${GIT_COMMIT_HASH}")
 
-# Note : project name is {project} and python module name is also {project}
+# Note : project name is ${CMAKE_PROJECT_NAME} and python module name is also ${CMAKE_PROJECT_NAME}
 set(module_name _${CMAKE_PROJECT_NAME}) # target name
 
 ##############################################
@@ -57,11 +57,8 @@ find_package(aidge_core REQUIRED)
 file(GLOB_RECURSE src_files "src/*.cpp")
 file(GLOB_RECURSE inc_files "include/*.hpp")
 
-##############################################
-# creating library
 add_library(${module_name} ${src_files} ${inc_files})
 
-
 target_link_libraries(${module_name}
     PUBLIC
         _aidge_core # _ is added because we link the exported target and not the project
@@ -129,11 +126,9 @@ install(TARGETS ${module_name} EXPORT ${CMAKE_PROJECT_NAME}-targets
   ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
   RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
 )
-
 install(DIRECTORY include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
 
 #Export the targets to a script
-
 install(EXPORT ${CMAKE_PROJECT_NAME}-targets
  FILE "${CMAKE_PROJECT_NAME}-targets.cmake"
  DESTINATION ${INSTALL_CONFIGDIR}
diff --git a/setup.py b/setup.py
index 11162c88..555bdee7 100644
--- a/setup.py
+++ b/setup.py
@@ -2,7 +2,6 @@
 import sys
 import os
 
-
 import shutil
 import pathlib
 import multiprocessing
@@ -11,8 +10,6 @@ import toml
 
 from math import ceil
 
-import toml
-
 from setuptools import setup, Extension
 from setuptools.command.build_ext import build_ext
 
-- 
GitLab