--- CMakeLists.txt.orig	2021-05-06 07:50:46 UTC
+++ CMakeLists.txt
@@ -1,6 +1,4 @@ cmake_minimum_required(VERSION 2.8)
 cmake_minimum_required(VERSION 2.8)
-set(CMAKE_BUILD_TYPE  "Release")
-SET(CMAKE_CXX_FLAGS   "-w -g -O3")
 set(CMAKE_MACOSX_RPATH 1)
 set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
 
@@ -11,24 +9,20 @@ ADD_LIBRARY(           Elas SHARED ${source_files})
 file(                  GLOB_RECURSE source_files sources/*)
 file(                  GLOB_RECURSE header_files sources/*.h)
 ADD_LIBRARY(           Elas SHARED ${source_files})
-find_library(          Commons NAMES Commons HINTS "$ENV{HOME}/lib")
-INCLUDE_DIRECTORIES(  "$ENV{HOME}/include")
-LINK_DIRECTORIES(     "$ENV{HOME}/lib")
+set_target_properties( Elas PROPERTIES VERSION 0.0.0 SOVERSION 0)
+find_library(          Commons NAMES Commons HINTS lib)
+INCLUDE_DIRECTORIES(   include/ISCD)
+LINK_DIRECTORIES(      ${Elas_BINARY_DIR})
 target_link_libraries( Elas ${Commons})
 INSTALL(
   TARGETS Elas
-  LIBRARY  DESTINATION "$ENV{HOME}/lib"
-  RUNTIME  DESTINATION "$ENV{HOME}/lib")
-INSTALL(               FILES ${header_files} DESTINATION "$ENV{HOME}/include")
+  LIBRARY  DESTINATION lib${LIB_SUFFIX}
+  RUNTIME  DESTINATION lib${LIB_SUFFIX})
+INSTALL(               FILES ${header_files} DESTINATION include)
 
 #Executable
 project(main)
 add_executable(        elastic sources/elastic.c)
 target_link_libraries( elastic ${Commons} Elas)
-INSTALL(               TARGETS elastic RUNTIME DESTINATION "$ENV{HOME}/bin")
-
-
- 
-
-
+INSTALL(               TARGETS elastic RUNTIME DESTINATION bin)
 
