AnyarInc / Ascent

A fast and flexible C++ simulation engine and differential equation solver.
Apache License 2.0
123 stars 15 forks source link

CMake Update #7

Closed mwalcott3 closed 4 years ago

mwalcott3 commented 4 years ago

If ascent is installed to the default path it should now be usable by other CMake projects using the following:

cmake_minimum_required(VERSION 3.12)
project("example")

find_package(ascent REQUIRED)

add_executable(${PROJECT_NAME} src/main.cpp)
target_link_libraries(${PROJECT_NAME} ascent::ascent)

This should fix issue #3

stephenberry commented 4 years ago

Addresses #3