diff options
author | CoprDistGit <infra@openeuler.org> | 2024-12-12 17:07:49 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-12-12 17:07:49 +0000 |
commit | a1a016977d4085502812d718c6e9c695bfdad04a (patch) | |
tree | 8576481ba05b3c034db547244f5498af3a79ca56 /CMakeLists.txt | |
parent | e07de218856bbe699b47b8b6f8044b2593f737ec (diff) |
automatic import of voro++openeuler24.09
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..94e140a --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,25 @@ +# Set the minimum required version of cmake for a project. +cmake_minimum_required(VERSION 2.6) + +add_library(voro++ SHARED + cell.cc + common.cc + container.cc + unitcell.cc + v_compute.cc + c_loops.cc + v_base.cc wall.cc + pre_container.cc + container_prd.cc +) +set_target_properties(voro++ PROPERTIES VERSION 0.0.0 SOVERSION 0) + +add_executable(voro++-bin cmd_line.cc) +set_target_properties(voro++-bin PROPERTIES OUTPUT_NAME voro++) +target_link_libraries(voro++-bin voro++) + +file(GLOB_RECURSE HDR RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.hh) + +install(TARGETS voro++ LIBRARY DESTINATION lib${LIB_SUFFIX}) +install(FILES ${HDR} DESTINATION include) +install(TARGETS voro++-bin DESTINATION bin) |