CMakeLists.txt 544 Bytes
Newer Older
Burlen Loring's avatar
Burlen Loring committed
1
add_library(timer STATIC MemoryProfiler.cxx Timer.cxx)
Burlen Loring's avatar
Burlen Loring committed
2 3 4 5 6

target_include_directories(timer SYSTEM INTERFACE
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
  $<INSTALL_INTERFACE:include/timer>)

Burlen Loring's avatar
Burlen Loring committed
7
target_link_libraries(timer sVTK sMPI)
Burlen Loring's avatar
Burlen Loring committed
8 9 10 11 12 13 14 15 16 17

install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/"
  DESTINATION include/timer FILES_MATCHING PATTERN "*.h")

install(TARGETS timer EXPORT timer
  INCLUDES DESTINATION include/timer ARCHIVE DESTINATION lib
  LIBRARY DESTINATION lib)

install(EXPORT timer DESTINATION lib/cmake
  EXPORT_LINK_INTERFACE_LIBRARIES)