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

5
6
set(pre "lib")
set(ext "a")
Aaron Bray's avatar
Aaron Bray committed
7
if(MSVC)
8
9
  set(pre "")
  set(ext "lib")
Aaron Bray's avatar
Aaron Bray committed
10
11
12
  set(config_dir "$(Configuration)")
endif()

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