Commit 139224e8c2170a3d90c3c9634209ee7e54e6426a
1 parent
afdf9cf9
modifly CMakeList
Showing
1 changed file
with
5 additions
and
3 deletions
test-hdsmf/CMakeLists.txt
| 1 | +add_executable("test-hdsmf" "test.c" ) | ||
| 1 | 2 | ||
| 2 | -add_executable("test-hdsmf" "test-hdsmf.c" ) | ||
| 3 | - | ||
| 4 | -target_link_libraries("test-hdsmf" Stage-Discharge-Relation) | 3 | +#target_link_libraries("test-hdsmf" Stage-Discharge-Relation) |
| 5 | 4 | ||
| 5 | +foreach(findlib ${APP_LIBNAMES}) | ||
| 6 | + target_link_libraries("test-hdsmf" ${findlib}) | ||
| 7 | +endforeach() | ||
| 6 | 8 | ||
| 7 | find_package("Threads") | 9 | find_package("Threads") |
| 8 | target_link_libraries("test-hdsmf" ${CMAKE_THREAD_LIBS_INIT}) | 10 | target_link_libraries("test-hdsmf" ${CMAKE_THREAD_LIBS_INIT}) |
| 9 | \ No newline at end of file | 11 | \ No newline at end of file |