You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
767 B
23 lines
767 B
set(COMMON_SOURCES
|
|
src/infinity-2d.c
|
|
src/greedy-nd.c
|
|
src/greedy-bsearch.c
|
|
src/infinity.c
|
|
include/infinity/infinity-2d.h
|
|
include/infinity/greedy-nd.h
|
|
include/infinity/greedy-bsearch.h
|
|
include/infinity/infinity.h)
|
|
|
|
set(TEST_SOURCES
|
|
tests/infinity-2d-test.cpp
|
|
tests/greedy-nd-test.cpp
|
|
tests/infinity-test.cpp)
|
|
|
|
add_library(infinity_static ${COMMON_SOURCES})
|
|
set_target_properties(infinity_static PROPERTIES OUTPUT_NAME infinity)
|
|
target_include_directories (infinity_static PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
add_executable(infinity-test.run ${COMMON_SOURCES} ${TEST_SOURCES})
|
|
target_compile_options(infinity-test.run PRIVATE "-fpermissive")
|
|
target_link_libraries(infinity-test.run gtest_main multirow_static lifting_static)
|