14 lines
388 B
CMake
14 lines
388 B
CMake
find_package (PkgConfig REQUIRED)
|
|
pkg_check_modules (GLIB2 REQUIRED glib-2.0)
|
|
|
|
include_directories (${GLIB2_INCLUDE_DIRS})
|
|
link_directories (${GLIB2_LIBRARY_DIRS})
|
|
|
|
if (CMAKE_COMPILER_IS_GNUCC)
|
|
add_definitions (${GLIB2_CFLAGS_OTHER})
|
|
endif ()
|
|
|
|
# add the executable
|
|
add_executable (gettextex2_test gettextex2_test.c)
|
|
target_link_libraries (gettextex2_test gettextex2 ${GLIB2_LIBRARIES})
|