Skip to content

Commit

Permalink
add include directory so cubature also works as a submodule in a proj…
Browse files Browse the repository at this point in the history
…ect. (#13)

Co-authored-by: Alexander Huss <alexander.huss@cern.ch>
  • Loading branch information
aykhuss and aykhuss authored Oct 29, 2020
1 parent 4b49688 commit e485971
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ project( cubature )
add_library( cubature SHARED
hcubature.c
pcubature.c)

target_include_directories( cubature PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
$<INSTALL_INTERFACE:.>)

add_executable( htest test.c )
target_link_libraries( htest cubature m )

Expand Down

0 comments on commit e485971

Please sign in to comment.