Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added LAPACK and Boost libraries to CMake targets. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# CHAP - The Channel Annotation Package
#
# Copyright (c) 2016 - 2018 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and
#
# Copyright (c) 2016 - 2018 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and
# Stephen J. Tucker
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
Expand Down Expand Up @@ -155,7 +155,9 @@ list(APPEND SRC_FILES "${CMAKE_CURRENT_BINARY_DIR}/config/config.cpp")
add_executable(chap ${SRC_FILES})
target_include_directories(chap PUBLIC ${CHAP_SOURCE_DIR}/include)
target_link_libraries(chap ${LAPACKE_LIBRARIES})
target_include_directories(chap PUBLIC ${LAPACKE_INCLUDE_DIRS})
target_link_libraries(chap ${BOOST_LIBRARIES})
target_include_directories(chap PUBLIC ${Boost_INCLUDE_DIRS})
target_link_libraries(chap ${GROMACS_LIBRARIES})
target_link_libraries(chap ${GTEST_LIBRARY})

Expand All @@ -180,4 +182,3 @@ install(TARGETS chap DESTINATION ${CMAKE_INSTALL_PREFIX}/chap/bin)
# also install data and scripts:
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/share DESTINATION ${CMAKE_INSTALL_PREFIX}/chap)
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/scripts DESTINATION ${CMAKE_INSTALL_PREFIX}/chap USE_SOURCE_PERMISSIONS)

9 changes: 5 additions & 4 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# CHAP - The Channel Annotation Package
#
# Copyright (c) 2016 - 2018 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and
#
# Copyright (c) 2016 - 2018 Gianni Klesse, Shanlin Rao, Mark S. P. Sansom, and
# Stephen J. Tucker
#
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
Expand Down Expand Up @@ -43,12 +43,13 @@ add_executable(runAllTests ${TEST_SRC_FILES} ${SRC_FILES})
target_include_directories(runAllTests PUBLIC ${CHAP_SOURCE_DIR}/include)
target_link_libraries(runAllTests ${GROMACS_LIBRARIES})
target_link_libraries(runAllTests ${LAPACKE_LIBRARIES})
target_include_directories(chap PUBLIC ${LAPACKE_INCLUDE_DIRS})
target_link_libraries(runAllTests ${LAPACK_LIBRARIES})
target_link_libraries(runAllTests ${BLAS_LIBRARIES})
target_link_libraries(runAllTests ${GTEST_LIBRARY})
target_link_libraries(runAllTests ${CMAKE_THREAD_LIBS_INIT})
target_include_directories(runAllTests PUBLIC ${Boost_INCLUDE_DIRS})

# make ctest aware of test executable:
# (if the color option is not set some test fail)
add_test(runAllTests runAllTests --gtest_color=yes)