1 # cmake file for debase
4 message(FATAL_ERROR "Include Defs.cmake")
29 add_library(debase STATIC ${DEBASE_SRCS})
31 # link debase to libm on unix systems
33 target_link_libraries(debase m)
35 add_definitions(-D_XOPEN_SOURCE=600)
39 find_library(C_LIBRARY NAMES c PATHS /usr/lib /lib)
40 find_library(M_LIBRARY NAMES m PATHS /usr/lib /lib)
41 find_library(LOG_LIBRARY NAMES log PATHS /usr/lib)
42 target_link_libraries(debase ${C_LIBRARY} ${M_LIBRARY} ${LOG_LIBRARY} gcc)
46 target_link_libraries(debase gcc)