Skip to content

Commit

Permalink
fixed librairy name
Browse files Browse the repository at this point in the history
  • Loading branch information
Pascal Frey authored and Pascal Frey committed May 6, 2021
1 parent 1f5ca2e commit 2ead131
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
cmake_minimum_required(VERSION 2.8)
set(CMAKE_BUILD_TYPE "Release")
INCLUDE_DIRECTORIES( "$ENV{HOME}/include")
LINK_DIRECTORIES( "$ENV{HOME}/lib")
SET(CMAKE_CXX_FLAGS "-w -g -O3")
set(CMAKE_MACOSX_RPATH 1)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
Expand All @@ -14,7 +12,9 @@ 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")
target_link_libraries( Elas Commons)
INCLUDE_DIRECTORIES( "$ENV{HOME}/include")
LINK_DIRECTORIES( "$ENV{HOME}/lib")
target_link_libraries( Elas ${Commons})
INSTALL(
TARGETS Elas
LIBRARY DESTINATION "$ENV{HOME}/lib"
Expand Down

0 comments on commit 2ead131

Please sign in to comment.