Skip to content

Commit

Permalink
Use fontawesome for icons
Browse files Browse the repository at this point in the history
  • Loading branch information
pinam45 committed Oct 9, 2018
1 parent b565619 commit 82cb149
Show file tree
Hide file tree
Showing 10 changed files with 1,351 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ include(cmake/imgui.cmake)
include(cmake/imgui-sfml.cmake)
include(cmake/libmpg123.cmake)
include(cmake/spdlog.cmake)
include(cmake/IconFontCppHeaders.cmake)

# Project version
set(VERSION_MAJOR 0)
Expand Down Expand Up @@ -55,6 +56,7 @@ make_target(
"${IMGUI_SFML_INCLUDE_DIR}"
"${LIBMPG123_INCLUDE_DIR}"
"${SPDLOG_INCLUDE_DIR}"
"${ICON_FONT_CPP_HEADERS_INCLUDE_DIR}"
OPTIONS
cxx
executable
Expand All @@ -69,6 +71,7 @@ target_link_libraries(
${IMGUI_SFML_LIBRARY}
${LIBMPG123_LIBRARY}
${SPDLOG_LIBRARY}
${ICON_FONT_CPP_HEADERS_LIBRARY}
)

# WinMain config
Expand Down
11 changes: 11 additions & 0 deletions cmake/IconFontCppHeaders.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
message(STATUS "Configuring IconFontCppHeaders")

get_filename_component(ICON_FONT_CPP_HEADERS_DIR ${CMAKE_SOURCE_DIR}/extlibs/IconFontCppHeaders ABSOLUTE)

# Variables
get_filename_component(ICON_FONT_CPP_HEADERS_INCLUDE_DIR ${ICON_FONT_CPP_HEADERS_DIR} ABSOLUTE)
set(ICON_FONT_CPP_HEADERS_LIBRARY "")

# Message
message("> include: ${ICON_FONT_CPP_HEADERS_INCLUDE_DIR}")
message(STATUS "Configuring IconFontCppHeaders - Done")
Loading

0 comments on commit 82cb149

Please sign in to comment.