AvtechScientific / ASL

Advanced Simulation Library - hardware accelerated multiphysics simulation platform.
http://asl.org.il
GNU Affero General Public License v3.0
217 stars 55 forks source link

examples and tests as standalone CMake projects #29

Open ghisvail opened 7 years ago

ghisvail commented 7 years ago

From a (distribution) CI perspective, it would be desirable to build the examples and tests against the packaged version of the ASL libraries. With the CMake targets you defined in the root CMakeLists.txt, it should be fairly straightforward to do, by just adding:

cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR)
project(ASL-examples) # project(ASL-tests)

find_package(ASL REQUIRED)

to examples/CMakeLists.txt and test/CMakeLists.txt, and replacing the target names in subsequent target_link_libraries calls with their respective ASL::<target> aliases.