External_g3log.cmake 916 Bytes
Newer Older
1
2
3
#-----------------------------------------------------------------------------
# Add External Project
#-----------------------------------------------------------------------------
Aaron Bray's avatar
Aaron Bray committed
4
5

if(MSVC)
6
7
8
  set(g3log_built_library ${g3log_BINARY_DIR}/$(Configuration)/g3logger$<$<CONFIG:Debug>:d>.lib)
else()
  set(g3log_built_library ${g3log_BINARY_DIR}/libg3logger.a)
Aaron Bray's avatar
Aaron Bray committed
9
10
endif()

11
include(imstkAddExternalProject)
Aaron Bray's avatar
Aaron Bray committed
12
imstk_define_external_dirs( g3log )
13
imstk_add_external_project( g3log
14
  GIT_REPOSITORY https://gitlab.kitware.com/iMSTK/g3log.git
Alexis Girault's avatar
Alexis Girault committed
15
  GIT_TAG 6c1698c4f7db6b9e4246ead38051f9866ea3ac06
16
17
  CMAKE_CACHE_ARGS
    -DADD_FATAL_EXAMPLE:BOOL=OFF
Aaron Bray's avatar
Aaron Bray committed
18
19
  INSTALL_COMMAND
    COMMAND ${CMAKE_COMMAND} -E copy_directory ${g3log_SOURCE_DIR}/src/g3log ${CMAKE_INSTALL_PREFIX}/include/g3log
20
    COMMAND ${CMAKE_COMMAND} -E copy ${g3log_built_library} ${CMAKE_INSTALL_PREFIX}/lib/
21
22
  RELATIVE_INCLUDE_PATH "src"
  DEPENDENCIES ""
23
24
  #VERBOSE
  )