Added the test program to CMake.

This commit is contained in:
Markus Koch 2016-06-08 18:20:16 +02:00
parent ce0b768e87
commit 61eee61c51
3 changed files with 21 additions and 0 deletions

View File

@ -11,4 +11,5 @@ LINK_DIRECTORIES (${GLIB2_LIBRARY_DIRS} ${GOBJECT2_LIBRARY_DIRS})
add_definitions(${GLIB2_CFLAGS_OTHER} ${GOBJECT2_CFLAGS_OTHER})
add_subdirectory(libkonaclient)
add_subdirectory(libkonaclient-test)
add_subdirectory(konaclient-gtk)

View File

@ -0,0 +1,13 @@
aux_source_directory(. SRC_LIST)
find_package(PkgConfig REQUIRED)
pkg_check_modules(PC_LIBSOUP REQUIRED libsoup-2.4)
include_directories(${PC_LIBSOUP_INCLUDE_DIRS} ../libkonaclient)
link_directories(${GTK3_LIBRARY_DIRS} ${PC_LIBSOUP_LIBRARY_DIRS} libkonaclient)
add_definitions(${GTK3_CFLAGS_OTHER})
add_executable(libkonaclient-test ${SRC_LIST})
# Link the target to the GTK+ libraries
target_link_libraries(libkonaclient-test ${PC_LIBSOUP_LIBRARIES} konaclient)

View File

@ -0,0 +1,7 @@
#include <stdio.h>
int main(int argc, char *argv[])
{
printf("Hello world!\n");
return 0;
}