2016-12-20 23:28:18 -08:00
|
|
|
cmake_minimum_required(VERSION 2.7)
|
2017-03-18 17:30:51 -07:00
|
|
|
|
|
|
|
if(TARGET ds)
|
|
|
|
return()
|
|
|
|
endif(TARGET ds)
|
|
|
|
|
2016-12-20 23:28:18 -08:00
|
|
|
project(libds)
|
|
|
|
|
2018-02-04 00:11:20 -08:00
|
|
|
add_compile_options(-pedantic -Wall)
|
2016-12-20 23:28:18 -08:00
|
|
|
|
2017-01-21 01:20:00 -08:00
|
|
|
add_library(ds STATIC src/libds.c src/vec.c src/ht.c src/ll.c src/sprs.c)
|
2016-12-20 23:28:18 -08:00
|
|
|
add_executable(libds src/main.c)
|
|
|
|
|
2018-02-04 00:11:20 -08:00
|
|
|
set_property(TARGET ds PROPERTY C_STANDARD 90)
|
|
|
|
set_property(TARGET libds PROPERTY C_STANDARD 90)
|
2016-12-21 16:45:29 -08:00
|
|
|
target_include_directories(ds PUBLIC include)
|
|
|
|
target_include_directories(libds PUBLIC include)
|
|
|
|
|
2016-12-20 23:28:18 -08:00
|
|
|
target_link_libraries(libds ds)
|