Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
reneX
iMSTK
Commits
c501cf24
Commit
c501cf24
authored
Dec 03, 2019
by
Aaron Bray
Browse files
Copy g3log so on linux
parent
dd1b6936
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMake/External/External_g3log.cmake
View file @
c501cf24
...
@@ -2,14 +2,23 @@
...
@@ -2,14 +2,23 @@
# Add External Project
# Add External Project
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
include
(
imstkAddExternalProject
)
imstk_define_external_dirs
(
g3log
)
if
(
MSVC
)
if
(
MSVC
)
set
(
g3log_built_library
${
g3log_BINARY_DIR
}
/$
(
Configuration
)
/g3logger$<$<CONFIG:Debug>:d>.lib
)
set
(
g3log_built_library
${
CMAKE_COMMAND
}
-E copy
${
g3log_BINARY_DIR
}
/$
(
Configuration
)
/g3logger$<$<CONFIG:Debug>:d>.lib
${
CMAKE_INSTALL_PREFIX
}
/lib/
)
set
(
g3log_built_shared
)
else
()
else
()
set
(
g3log_built_library
${
g3log_BINARY_DIR
}
/libg3logger.a
)
set
(
g3log_built_library
${
CMAKE_COMMAND
}
-E copy
${
g3log_BINARY_DIR
}
/libg3logger.a
${
CMAKE_INSTALL_PREFIX
}
/lib/
)
set
(
g3log_built_shared
${
CMAKE_COMMAND
}
-E copy
${
g3log_BINARY_DIR
}
/libg3logger.so
${
CMAKE_INSTALL_PREFIX
}
/lib/
)
endif
()
endif
()
include
(
imstkAddExternalProject
)
imstk_define_external_dirs
(
g3log
)
imstk_add_external_project
(
g3log
imstk_add_external_project
(
g3log
GIT_REPOSITORY https://gitlab.kitware.com/iMSTK/g3log.git
GIT_REPOSITORY https://gitlab.kitware.com/iMSTK/g3log.git
GIT_TAG 6c1698c4f7db6b9e4246ead38051f9866ea3ac06
GIT_TAG 6c1698c4f7db6b9e4246ead38051f9866ea3ac06
...
@@ -17,7 +26,8 @@ imstk_add_external_project( g3log
...
@@ -17,7 +26,8 @@ imstk_add_external_project( g3log
-DADD_FATAL_EXAMPLE:BOOL=OFF
-DADD_FATAL_EXAMPLE:BOOL=OFF
INSTALL_COMMAND
INSTALL_COMMAND
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
g3log_SOURCE_DIR
}
/src/g3log
${
CMAKE_INSTALL_PREFIX
}
/include/g3log
COMMAND
${
CMAKE_COMMAND
}
-E copy_directory
${
g3log_SOURCE_DIR
}
/src/g3log
${
CMAKE_INSTALL_PREFIX
}
/include/g3log
COMMAND
${
CMAKE_COMMAND
}
-E copy
${
g3log_built_library
}
${
CMAKE_INSTALL_PREFIX
}
/lib/
COMMAND
${
g3log_built_library
}
COMMAND
${
g3log_built_shared
}
RELATIVE_INCLUDE_PATH
"src"
RELATIVE_INCLUDE_PATH
"src"
DEPENDENCIES
""
DEPENDENCIES
""
#VERBOSE
#VERBOSE
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment