9 lines
223 B
CMake
9 lines
223 B
CMake
|
include (FindPkgConfig)
|
||
|
include (cmake_FindGlib)
|
||
|
|
||
|
include_directories (${GLIB_INCLUDE_DIR})
|
||
|
include_directories (${GLIB_PKG_INCLUDE_DIRS})
|
||
|
|
||
|
add_library (mylib SHARED mylib.c)
|
||
|
target_link_libraries (mylib ${GLIB_LIBRARIES})
|