Create CMakeLists.txt file.
This commit is contained in:
parent
b211362f62
commit
41d4d98678
12
CMakeLists.txt
Normal file
12
CMakeLists.txt
Normal 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
3
src/main.c
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
int main(int argc, char** argv){
|
||||||
|
return 0;
|
||||||
|
}
|
0
src/pattern.c
Normal file
0
src/pattern.c
Normal file
Loading…
Reference in New Issue
Block a user