diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-10-16 10:46:45 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-10-16 10:46:45 -0400 |
commit | 2ba6f30ca09e805d90c164fba776248373aef621 (patch) | |
tree | c39305a5cafe72b8d861dd5586aeb411b90d41db /CMakeLists.txt | |
parent | ad82364f613d71385f0e5de93b0d155b97a24b3e (diff) |
cmake tidy-up
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ad641cf..70c4c24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,11 +5,11 @@ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) find_package(Glib) find_package(GIO) find_package(Mhash) +find_package(PAM) pkg_check_modules(LIBUSER REQUIRED libuser) add_definitions(${LIBUSER_CFLAGS}) -link_libraries(${LIBUSER_LDFLAGS}) -link_libraries(-lpam) +#add_definitions(${PAM_INCLUDE_DIR}) include_directories(${GLIB_PKG_INCLUDE_DIRS}) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -funsigned-char -Wall") @@ -32,7 +32,7 @@ add_executable(instr-daemon instr-daemon.c ) add_executable(instr-client instr-client.c) -target_link_libraries(instr-daemon gio-2.0 gobject-2.0 glib-2.0 mhash m) +target_link_libraries(instr-daemon gio-2.0 gobject-2.0 glib-2.0 mhash m pam user) target_link_libraries(instr-client gio-2.0 gobject-2.0 glib-2.0) INSTALL(TARGETS instr-daemon instr-client |