Fix CMakeLists
This commit is contained in:
parent
fa36deba03
commit
ce4295f674
@ -10,11 +10,15 @@ pkg_check_modules(GOBJECT2 REQUIRED gobject-2.0)
|
|||||||
pkg_check_modules(SOUP REQUIRED libsoup-2.4)
|
pkg_check_modules(SOUP REQUIRED libsoup-2.4)
|
||||||
pkg_check_modules(JSON REQUIRED json-glib-1.0)
|
pkg_check_modules(JSON REQUIRED json-glib-1.0)
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES (${GLIB2_INCLUDE_DIRS} ${GOBJECT2_INCLUDE_DIRS} ${SOUP_INCLUDE_DIRS} ${JSON_INCLUDE_DIRS})
|
INCLUDE_DIRECTORIES(${GLIB2_INCLUDE_DIRS} ${GOBJECT2_INCLUDE_DIRS} ${SOUP_INCLUDE_DIRS} ${JSON_INCLUDE_DIRS})
|
||||||
LINK_DIRECTORIES (${GLIB2_LIBRARY_DIRS} ${GOBJECT2_LIBRARY_DIRS} ${SOUP_LIBRARY_DIRS} ${JSON_LIBRARY_DIRS})
|
LINK_DIRECTORIES(${GLIB2_LIBRARY_DIRS} ${GOBJECT2_LIBRARY_DIRS} ${SOUP_LIBRARY_DIRS} ${JSON_LIBRARY_DIRS})
|
||||||
add_definitions(${GLIB2_CFLAGS_OTHER} ${GOBJECT2_CFLAGS_OTHER} ${SOUP_CFLAGS_OTHER} ${JSON_CFLAGS_OTHER})
|
add_definitions(${GLIB2_CFLAGS_OTHER} ${GOBJECT2_CFLAGS_OTHER} ${SOUP_CFLAGS_OTHER} ${JSON_CFLAGS_OTHER})
|
||||||
|
|
||||||
FILE(GLOB_RECURSE HEADERS "src/*.h")
|
FILE(GLOB_RECURSE HEADERS "src/*.h")
|
||||||
aux_source_directory(./src SRC_LIST)
|
aux_source_directory(./src SRC_LIST)
|
||||||
|
|
||||||
add_executable(${PROJECT_NAME} ${SRC_LIST} "${HEADERS}")
|
add_executable(${PROJECT_NAME} ${SRC_LIST} "${HEADERS}")
|
||||||
|
|
||||||
|
target_link_libraries(${PROJECT_NAME} ${SOUP_LIBRARIES} ${JSON_LIBRARIES})
|
||||||
|
|
||||||
|
install (TARGETS ${PROJECT_NAME} DESTINATION bin)
|
||||||
|
Loading…
Reference in New Issue
Block a user