-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfunctionoid.cmake
More file actions
20 lines (16 loc) · 798 Bytes
/
Copy pathfunctionoid.cmake
File metadata and controls
20 lines (16 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#############################################################################
# Psi.Functionoid — header-only callable library.
#
# Embed via include( functionoid.cmake ) from a host CMake project or standalone
# CMakeLists.txt.
#############################################################################
set( _functionoid_include "${CMAKE_CURRENT_LIST_DIR}/include" )
if ( NOT TARGET PsiFunctionoid )
add_library( PsiFunctionoid INTERFACE )
add_library( Psi::Functionoid ALIAS PsiFunctionoid )
target_include_directories( PsiFunctionoid INTERFACE "${_functionoid_include}" )
# Boost bits functionoid headers pull (host usually supplies Boost::boost).
if ( TARGET Boost::boost )
target_link_libraries( PsiFunctionoid INTERFACE Boost::boost )
endif()
endif()