Skip to content

Commit

Permalink
More missing includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kasper Peeters committed Dec 10, 2024
1 parent 5421966 commit 539706a
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions c++lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -327,17 +327,32 @@ target_link_libraries(cadabra2++_static ${GMPXX_LIB} ${GMP_LIB})

# Trivial example
add_executable(trivial trivial.cc)
target_include_directories(trivial PUBLIC "${CMAKE_BINARY_DIR}/include" "${CMAKE_BINARY_DIR}/include/cadabra2++")
target_include_directories(trivial PUBLIC
"${CADABRA_LIBS_DIR}/pybind11/include"
"${CMAKE_BINARY_DIR}/include"
"${CMAKE_BINARY_DIR}/include/cadabra2++"
${Python_INCLUDE_DIRS}
)
target_link_libraries(trivial cadabra2++)

# Sample executable
add_executable(simple simple.cc)
target_include_directories(simple PUBLIC "${CMAKE_BINARY_DIR}/include" "${CMAKE_BINARY_DIR}/include/cadabra2++")
target_include_directories(simple PUBLIC
"${CADABRA_LIBS_DIR}/pybind11/include"
"${CMAKE_BINARY_DIR}/include"
"${CMAKE_BINARY_DIR}/include/cadabra2++"
${Python_INCLUDE_DIRS}
)
target_link_libraries(simple cadabra2++)

# Test for adjform
add_executable(adjform adjform.cc)
target_include_directories(adjform PUBLIC "${CMAKE_BINARY_DIR}/include" "${CMAKE_BINARY_DIR}/include/cadabra2++")
target_include_directories(adjform PUBLIC
"${CADABRA_LIBS_DIR}/pybind11/include"
"${CMAKE_BINARY_DIR}/include"
"${CMAKE_BINARY_DIR}/include/cadabra2++"
${Python_INCLUDE_DIRS}
)
target_link_libraries(adjform cadabra2++)

# Test for numerical evaluation
Expand Down

0 comments on commit 539706a

Please sign in to comment.