hyporo-cpp/source/hyporo/hyplib/CMakeLists.txt

55 lines
806 B
CMake
Raw Normal View History

2022-09-22 20:43:06 +05:00
include_directories(
integer
scalar
2022-10-17 11:12:52 +05:00
array
2022-09-22 20:43:06 +05:00
vector
matrix
)
add_library(hyporo-hyplib STATIC
# Header files
scalar/scalar.hpp
2022-10-17 11:12:52 +05:00
array/iterator.hpp
array/dynamic_array.hpp
array/static_array.hpp
array/array.hpp
vector/vector_space.hpp
2022-09-22 20:43:06 +05:00
vector/vector.hpp
2022-10-17 11:12:52 +05:00
2022-10-27 22:27:50 +05:00
matrix/matrix_space.hpp
2022-09-22 20:43:06 +05:00
matrix/matrix.hpp
2022-10-17 11:12:52 +05:00
2022-10-05 21:10:51 +05:00
io/file.hpp
io/io.hpp
2022-09-22 20:43:06 +05:00
# Source files
2022-10-05 21:10:51 +05:00
io/file.cpp
2022-10-27 22:27:50 +05:00
matrix/matrix_space.cpp
2022-09-22 20:43:06 +05:00
)
if(WITH_GTESTS)
add_executable(hyporo-hyplib-test
tests/hyplib-test.cpp
2022-10-27 22:27:50 +05:00
matrix/matrix_space.hpp
2022-09-22 20:43:06 +05:00
)
target_link_libraries(hyporo-hyplib-test
2022-10-27 22:27:50 +05:00
hyporo-hyplib
2022-09-22 20:43:06 +05:00
GTest::gtest_main
)
gtest_add_tests(TARGET hyporo-hyplib-test)
2022-10-17 11:12:52 +05:00
add_executable(mytest
tests/mytest.cpp)
2022-09-22 20:43:06 +05:00
endif()