Merge pull request #113 from gitter-badger/gitter-badge
[sddekit.git] / src / CMakeLists.txt
blob5b4f2486a07a197fa84b0feb40752910673f868a
1 add_definitions(-DSDDEBUG)
2 if(CMAKE_COMPILER_IS_GNUCC)
3         set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Werror -fstrict-aliasing -Wstrict-aliasing -ansi")
4 endif()
6 set(libsd_srcs randomkit.c sd_dat.c sd_hist.c sd_net.c sd_out.c
7         sd_scheme.c sd_solv.c sd_sparse.c sd_sys.c sd_sys_wc.c
8         sd_util.c sd_malloc.c sd_test.c)
9 add_library(sk ${libsd_srcs})
11 if (UNIX)
12         target_link_libraries(sk m)
13 endif(UNIX)