libds/CMakeLists.txt

20 lines
467 B
CMake

cmake_minimum_required(VERSION 2.7)
if(TARGET ds)
return()
endif(TARGET ds)
project(libds)
add_compile_options(-pedantic -Wall)
add_library(ds STATIC src/libds.c src/vec.c src/ht.c src/ll.c src/sprs.c)
add_executable(libds src/main.c)
set_property(TARGET ds PROPERTY C_STANDARD 90)
set_property(TARGET libds PROPERTY C_STANDARD 90)
target_include_directories(ds PUBLIC include)
target_include_directories(libds PUBLIC include)
target_link_libraries(libds ds)