Update CMakeLists.txt

This commit is contained in:
Danila Fedorin 2018-09-02 15:42:21 -07:00
parent 22ac8ba2d0
commit 441e69065e
1 changed files with 6 additions and 3 deletions

View File

@ -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)