libregex/CMakeLists.txt

18 lines
388 B
CMake

cmake_minimum_required(VERSION 2.7)
if(TARGET regex)
return()
endif(TARGET regex)
project(libregex)
add_library(regex STATIC src/libregex.c)
add_executable(libregex src/main.c)
add_subdirectory(external/libds)
target_include_directories(regex PUBLIC include)
target_include_directories(libregex PUBLIC include)
target_link_libraries(regex ds)
target_link_libraries(libregex regex)