51 lines
780 B
CMake
51 lines
780 B
CMake
|
|
include_directories(
|
|
integer
|
|
scalar
|
|
array
|
|
vector
|
|
matrix
|
|
)
|
|
|
|
add_library(hyporo-hyplib STATIC
|
|
|
|
# Header files
|
|
integer/integer.hpp
|
|
scalar/scalar.hpp
|
|
|
|
array/iterator.hpp
|
|
array/dynamic_array.hpp
|
|
array/static_array.hpp
|
|
array/array.hpp
|
|
|
|
vector/vector_space.hpp
|
|
|
|
vector/VectorSpace.hpp
|
|
vector/vector.hpp
|
|
|
|
matrix/MatrixSpace.hpp
|
|
matrix/matrix.hpp
|
|
|
|
io/file.hpp
|
|
io/io.hpp
|
|
|
|
# Source files
|
|
scalar/scalar.cpp
|
|
io/file.cpp
|
|
)
|
|
|
|
if(WITH_GTESTS)
|
|
add_executable(hyporo-hyplib-test
|
|
tests/hyplib-test.cpp
|
|
)
|
|
|
|
target_link_libraries(hyporo-hyplib-test
|
|
GTest::gtest_main
|
|
)
|
|
|
|
gtest_add_tests(TARGET hyporo-hyplib-test)
|
|
|
|
add_executable(mytest
|
|
tests/mytest.cpp)
|
|
endif()
|