From 441e69065efb95b373fad1289503bf617deb7901 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Sun, 2 Sep 2018 15:42:21 -0700 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4dfddf7..42ed951 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,10 @@ project(abcs) set(CMAKE_CXX_STANDARD 11) add_subdirectory(external/libabacus) -add_executable(abcs src/main.cpp src/ref.cpp src/abacus.cpp src/types.cpp src/string_functions.cpp src/util.cpp src/operator_functions.cpp src/trig_functions.cpp src/other_functions.cpp) -target_link_libraries(abcs abacus mpfr readline) +add_library(libabcs STATIC src/ref.cpp src/abacus.cpp src/types.cpp src/util.cpp src/operator_functions.cpp src/trig_functions.cpp src/other_functions.cpp) +add_executable(abcs src/main.cpp src/string_functions.cpp) + +target_link_libraries(libabcs abacus mpfr readline) +target_link_libraries(abcs libabcs) target_include_directories(abcs PUBLIC include) -target_compile_options(abcs PUBLIC) +target_include_directories(libabcs PUBLIC include)