-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
23 lines (19 loc) · 893 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 3.14)
project(SimbodyTestProject LANGUAGES CXX)
# Specify the C++ standard
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# Enzyme
# ------
# TODO the Enzyme installation target does not include LLDEnzymeLooseTypeFlags, LLDEnzymePrintTypeFlags, etc.
# set(Enzyme_DIR ${CMAKE_SOURCE_DIR}/dependencies/install/Enzyme/lib/cmake/Enzyme)
set(Enzyme_DIR ${CMAKE_SOURCE_DIR}/dependencies/build/Enzyme/build)
find_package(Enzyme REQUIRED CONFIG NO_DEFAULT_PATH)
get_property(importTargetsAfter DIRECTORY "${CMAKE_SOURCE_DIR}" PROPERTY IMPORTED_TARGETS)
message("imported targets ${importTargetsAfter}")
# Simbody
# -------
set(Simbody_DIR ${CMAKE_SOURCE_DIR}/dependencies/install/simbody/lib/cmake/simbody)
set(SIMBODY_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/dependencies/install/simbody/include/simbody)
find_package(Simbody REQUIRED)
add_subdirectory(src)