22 lines
529 B
CMake
22 lines
529 B
CMake
cmake_minimum_required(VERSION 2.7)
|
|
|
|
if(TARGET regex)
|
|
return()
|
|
endif(TARGET regex)
|
|
|
|
project(libregex)
|
|
|
|
add_compile_options(-pedantic -Wall)
|
|
|
|
add_library(regex STATIC src/libregex.c)
|
|
add_executable(libregex src/main.c)
|
|
add_subdirectory(external/libds)
|
|
|
|
set_property(TARGET regex PROPERTY C_STANDARD 90)
|
|
set_property(TARGET libregex PROPERTY C_STANDARD 90)
|
|
target_include_directories(regex PUBLIC include)
|
|
target_include_directories(libregex PUBLIC include)
|
|
|
|
target_link_libraries(regex ds)
|
|
target_link_libraries(libregex regex)
|