Fix CMakeLists.txt dependencies
This commit is contained in:
parent
6001d51547
commit
5da8287248
1 changed files with 17 additions and 4 deletions
|
@ -1,8 +1,21 @@
|
||||||
cmake_minimum_required(VERSION 3.7)
|
cmake_minimum_required(VERSION 3.7)
|
||||||
project(Feader)
|
project(Feader)
|
||||||
set(PROJECT_SOURCE_DIR, "src")
|
set(CMAKE_C_FLAGS, "-g -Wall")
|
||||||
include_directories(
|
include_directories(
|
||||||
"include"
|
"/usr/local/include"
|
||||||
"lib"
|
"/usr/include/x86_64-linux-gnu"
|
||||||
|
"/usr/local/include/libxml2"
|
||||||
|
"include"
|
||||||
)
|
)
|
||||||
add_executable(Feader src/feader.c)
|
link_directories(
|
||||||
|
"/usr/lib/x86_64-linux-gnu"
|
||||||
|
"/usr/local/lib"
|
||||||
|
"lib"
|
||||||
|
)
|
||||||
|
add_executable(Feader src/feader.c)
|
||||||
|
find_package(libcurl)
|
||||||
|
target_link_libraries(
|
||||||
|
Feader
|
||||||
|
curl
|
||||||
|
xml2
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue