libregex/CMakeLists.txt

13 lines
338 B
CMake

cmake_minimum_required(VERSION 2.7)
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)