Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5 from joakim-hove/install-lib
Browse files Browse the repository at this point in the history
Added install( ) for the nexus library.
  • Loading branch information
ReedOnly authored Dec 20, 2017
2 parents ae1c2e0 + a13380b commit d2bba87
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
project(libnex CXX)
include(GNUInstallDirs)

add_library(nex src/nexus_plot.cpp
src/unit.cpp
Expand All @@ -9,6 +10,12 @@ target_compile_options(nex PRIVATE ${CXX_STANDARD})
target_include_directories(nex PUBLIC src/include)
target_link_libraries(nex PUBLIC ecl)

install(TARGETS nex
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR})


if(NOT BUILD_TESTING)
return()
endif()
Expand Down

0 comments on commit d2bba87

Please sign in to comment.