Create CMakeLists.txt file.

This commit is contained in:
Danila Fedorin 2017-01-19 19:33:37 -08:00
parent b211362f62
commit 41d4d98678
3 changed files with 15 additions and 0 deletions

12
CMakeLists.txt Normal file
View File

@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 2.7)
project(liblex)
add_library(lex STATIC src/pattern.c)
add_executable(liblex src/main.c)
add_subdirectory(external/libds)
target_include_directories(lex PUBLIC include)
target_include_directories(liblex PUBLIC include)
target_link_libraries(lex ds)
target_link_libraries(liblex lex)

3
src/main.c Normal file
View File

@ -0,0 +1,3 @@
int main(int argc, char** argv){
return 0;
}

0
src/pattern.c Normal file
View File