Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
b3fe4b54
Commit
b3fe4b54
authored
May 12, 2019
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed CMakeLists.txt
parent
872ea6bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
CMakeLists.txt
CMakeLists.txt
+3
-11
No files found.
CMakeLists.txt
View file @
b3fe4b54
...
@@ -60,18 +60,12 @@ set(SRC_BASE "${CMAKE_CURRENT_SOURCE_DIR}/src")
...
@@ -60,18 +60,12 @@ set(SRC_BASE "${CMAKE_CURRENT_SOURCE_DIR}/src")
set
(
STATIC_SRC_FILES
"
${
SRC_BASE
}
/spdlog.cpp"
)
set
(
STATIC_SRC_FILES
"
${
SRC_BASE
}
/spdlog.cpp"
)
add_library
(
spdlog_static STATIC
${
STATIC_SRC_FILES
}
)
add_library
(
spdlog_static STATIC
${
STATIC_SRC_FILES
}
)
add_library
(
spdlog::static ALIAS spdlog_static
)
add_library
(
spdlog::static ALIAS spdlog_static
)
if
(
CMAKE_BUILD_TYPE EQUAL
"RELEASE"
)
set_target_properties
(
spdlog_static PROPERTIES OUTPUT_NAME
"spdlog"
)
else
()
set_target_properties
(
spdlog_static PROPERTIES OUTPUT_NAME
"spdlog-debug"
)
endif
()
target_compile_definitions
(
spdlog_static PUBLIC SPDLOG_STATIC_LIB
)
target_compile_definitions
(
spdlog_static PUBLIC SPDLOG_STATIC_LIB
)
target_include_directories
(
spdlog_static PUBLIC
"$<BUILD_INTERFACE:
${
CMAKE_CURRENT_LIST_DIR
}
/include>"
)
target_include_directories
(
spdlog_static PUBLIC
"$<BUILD_INTERFACE:
${
CMAKE_CURRENT_LIST_DIR
}
/include>"
)
set_target_properties
(
spdlog_static PROPERTIES OUTPUT_NAME
"spdlog"
)
set_target_properties
(
spdlog_static PROPERTIES DEBUG_POSTFIX
"-debug"
)
#
h
eadr only
#
H
eadr only
add_library
(
spdlog_header_only INTERFACE
)
add_library
(
spdlog_header_only INTERFACE
)
target_include_directories
(
spdlog_header_only INTERFACE
"$<BUILD_INTERFACE:
${
CMAKE_CURRENT_LIST_DIR
}
/include>"
)
target_include_directories
(
spdlog_header_only INTERFACE
"$<BUILD_INTERFACE:
${
CMAKE_CURRENT_LIST_DIR
}
/include>"
)
add_library
(
spdlog::header_only ALIAS spdlog_header_only
)
add_library
(
spdlog::header_only ALIAS spdlog_header_only
)
...
@@ -83,7 +77,6 @@ endif()
...
@@ -83,7 +77,6 @@ endif()
if
(
SPDLOG_FMT_EXTERNAL
)
if
(
SPDLOG_FMT_EXTERNAL
)
target_compile_definitions
(
spdlog_static INTERFACE SPDLOG_FMT_EXTERNAL
)
target_compile_definitions
(
spdlog_static INTERFACE SPDLOG_FMT_EXTERNAL
)
target_link_libraries
(
spdlog_static INTERFACE fmt::fmt
)
target_link_libraries
(
spdlog_static INTERFACE fmt::fmt
)
target_compile_definitions
(
spdlog_header_only INTERFACE SPDLOG_FMT_EXTERNAL
)
target_compile_definitions
(
spdlog_header_only INTERFACE SPDLOG_FMT_EXTERNAL
)
target_link_libraries
(
spdlog_header_only INTERFACE fmt::fmt
)
target_link_libraries
(
spdlog_header_only INTERFACE fmt::fmt
)
endif
()
endif
()
...
@@ -107,7 +100,6 @@ endif()
...
@@ -107,7 +100,6 @@ endif()
install
(
DIRECTORY
${
HEADER_BASE
}
DESTINATION include
)
install
(
DIRECTORY
${
HEADER_BASE
}
DESTINATION include
)
install
(
TARGETS spdlog_static ARCHIVE DESTINATION lib
)
install
(
TARGETS spdlog_static ARCHIVE DESTINATION lib
)
#---------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------
# register project in CMake user registry
# register project in CMake user registry
#---------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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