forked from RRZE-HPC/likwid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved component handling + reduced test/cmake to min cmake version…
… 3.5 - fixed move installation
- Loading branch information
Showing
3 changed files
with
51 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
cmake_minimum_required(VERSION 3.11 FATAL_ERROR) | ||
cmake_minimum_required(VERSION 3.5 FATAL_ERROR) | ||
|
||
project(Likwid-Test LANGUAGES C) | ||
|
||
find_package(likwid REQUIRED COMPONENTS marker OPTIONAL_COMPONENTS nvmarker) | ||
|
||
add_executable(test ${CMAKE_SOURCE_DIR}/test.c) | ||
target_link_libraries(test PRIVATE likwid::likwid) | ||
message(STATUS "") | ||
message(STATUS "likwid_FOUND: ${likwid_FOUND}") | ||
|
||
foreach(_VAR LIKWID_INCLUDES LIKWID_LIBRARIES LIKWID_ROOT_DIR | ||
LIKWID_NVIDIA_INTERFACE LIKWID_FORTRAN_INTERFACE | ||
LIKWID_INCLUDE_DIR LIKWID_LIBRARY LIKWID_INCLUDE_DIRS | ||
LIKWID_LIBRARIES LIKWID_LIBRARY_DIRS) | ||
message(STATUS "${_VAR}: ${${_VAR}}") | ||
endforeach() | ||
|
||
foreach(_VAR ${LIKWID_EXECUTABLE_OPTIONS}) | ||
message(STATUS "LIKWID_${_VAR}_EXECUTABLE: ${LIKWID_${_VAR}_EXECUTABLE}") | ||
endforeach() | ||
|
||
foreach(_VAR ${LIKWID_COMPONENT_OPTIONS}) | ||
message(STATUS "likwid_${_VAR}_FOUND: ${likwid_${_VAR}_FOUND}") | ||
endforeach() | ||
message(STATUS "") | ||
|
||
add_executable(test_install_tree ${PROJECT_SOURCE_DIR}/test.c) | ||
target_link_libraries(test_install_tree PRIVATE likwid::likwid) |