Skip to content

Commit

Permalink
Merge branch 'jgalan_cry' of github.com:rest-for-physics/restG4 into …
Browse files Browse the repository at this point in the history
…jgalan_cry
  • Loading branch information
jgalan committed Nov 2, 2023
2 parents a311418 + f23134d commit dc922e3
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,17 @@ if (DEFINED REST_CRY_PATH)
message(STATUS "Found CRY includes in ${CRY_INC_PATH}")
message(STATUS "Found CRY library in ${CRY_LIB_PATH}")

add_definitions(-DUSE_CRY)
add_compile_definitions("CRY_DATA_PATH=\"${REST_CRY_PATH}/data\"")
target_link_libraries(${PROJECT_NAME} PUBLIC ${REST_CRY_PATH}/lib/libCRY.a)
include_directories(${REST_CRY_PATH}/src/)
else()
message( FATAL_ERROR "REST_CRY_PATH was defined with path ${REST_CRY_PATH}, but CRY library was not found there!\n")
endif ()
add_definitions(-DUSE_CRY)
add_compile_definitions("CRY_DATA_PATH=\"${REST_CRY_PATH}/data\"")
target_link_libraries(${PROJECT_NAME}
PUBLIC ${REST_CRY_PATH}/lib/libCRY.a)
include_directories(${REST_CRY_PATH}/src/)
else ()
message(
FATAL_ERROR
"REST_CRY_PATH was defined with path ${REST_CRY_PATH}, but CRY library was not found there!\n"
)
endif ()
endif (DEFINED REST_CRY_PATH)

target_link_libraries(${PROJECT_NAME} PUBLIC ${LIBRARY})
Expand Down

0 comments on commit dc922e3

Please sign in to comment.