Skip to content

Commit

Permalink
removing dev-only libs
Browse files Browse the repository at this point in the history
  • Loading branch information
typon committed Dec 6, 2021
1 parent 1391b58 commit bc92536
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 358 deletions.
45 changes: 1 addition & 44 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,14 @@ include_directories(external_libs/clipp/include)
# ------------------------------------------------------------------------------
# Dependencies used only for development and testing
# ------------------------------------------------------------------------------

FetchContent_Declare(fmt
GIT_REPOSITORY https://github.com/fmtlib/fmt
GIT_TAG 1266c2b6003e6391046bbab57dcf20293e25dedd
)

# ------------------------------------------------------------------------------

FetchContent_Declare(RTTR
GIT_REPOSITORY https://github.com/rttrorg/rttr
GIT_TAG e338d9aa47f6c7da97be88df3aaa48ac9c5fe6c6
)

# ------------------------------------------------------------------------------

FetchContent_Declare(nlohmann_json
GIT_REPOSITORY https://github.com/nlohmann/json
GIT_TAG 7194245a314d142a5560f6906a87f7c67ebbcf2e
)

# ------------------------------------------------------------------------------
include_directories(external_libs/catch2)
# ------------------------------------------------------------------------------

# End of dependencies used only for development and testing
# ------------------------------------------------------------------------------

# Cmake will download all the required deps and install them.
FetchContent_MakeAvailable(ftxui fmt RTTR nlohmann_json)
FetchContent_MakeAvailable(ftxui fmt)

project(tabdeeli
LANGUAGES CXX
Expand All @@ -77,42 +56,20 @@ add_executable(tabdeeli
src/object_utils.cpp
src/utils.cpp
src/styled_button.cpp
src/metaprogramming.cpp
src/flexible_paragraph.cpp
src/flexible_menu.cpp
src/flexible_container.cpp
src/flexible_input.cpp
)

add_executable(tabdeeli_unit_tests
tests/unit_tests.cpp
src/utils.cpp
src/metaprogramming.cpp
src/searcher.cpp
)

target_include_directories(tabdeeli PRIVATE src)
target_include_directories(tabdeeli_unit_tests PRIVATE src)

target_link_libraries(tabdeeli
PRIVATE ag
PRIVATE fmt::fmt
PRIVATE ftxui::screen
PRIVATE ftxui::dom
PRIVATE ftxui::component # Not needed for this example.
PRIVATE RTTR::Core
PRIVATE nlohmann_json::nlohmann_json
PUBLIC stdc++
)

target_link_libraries(tabdeeli_unit_tests
PRIVATE ag
PRIVATE fmt::fmt
PRIVATE ftxui::screen
PRIVATE ftxui::dom
PRIVATE ftxui::component # Not needed for this example.
PRIVATE RTTR::Core
PRIVATE nlohmann_json::nlohmann_json
PUBLIC stdc++
)

Expand Down
1 change: 0 additions & 1 deletion src/components.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include "object_utils.hpp"
#include "components.hpp"
#include "utils.hpp"
#include "metaprogramming.hpp"

using namespace ftxui;

Expand Down
263 changes: 0 additions & 263 deletions src/metaprogramming.cpp

This file was deleted.

Loading

0 comments on commit bc92536

Please sign in to comment.