diff --git a/CMakeLists.txt b/CMakeLists.txt index b7b6368..5239708 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,8 +24,8 @@ else (WITHEDITOR) endif (WITHEDITOR) configure_file( - "${PROJECT_SOURCE_DIR}/include/config.h.in" - "${PROJECT_SOURCE_DIR}/include/config.h" + "include/config.h.in" + "include/config.h" ) add_subdirectory(man) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4e58971..bd77523 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,27 +5,27 @@ add_executable( read_conf.c set_ambient_cap.c compute_digest.c file_utils.c scado_parse.c cado_scado_check.c ) -target_include_directories(cado PRIVATE ${PROJECT_SOURCE_DIR}/include) +target_include_directories(cado PRIVATE ${PROJECT_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include) target_link_libraries( cado ${pam_library} ${pam_misc_library} ${cap_library} ${mhash_library} ${execs_library}) add_executable(cadrop cadrop.c capset_from_namelist.c set_ambient_cap.c) -target_include_directories(cadrop PRIVATE ${PROJECT_SOURCE_DIR}/include) +target_include_directories(cadrop PRIVATE ${PROJECT_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include) target_link_libraries(cadrop ${cap_library}) add_executable( scado scado.c pam_check.c file_utils.c compute_digest.c capset_from_namelist.c scado_parse.c ) -target_include_directories(scado PRIVATE ${PROJECT_SOURCE_DIR}/include) +target_include_directories(scado PRIVATE ${PROJECT_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include) target_link_libraries( scado ${pam_library} ${pam_misc_library} ${cap_library} ${mhash_library} ${execs_library} ) add_executable(caprint caprint.c) -target_include_directories(caprint PRIVATE ${PROJECT_SOURCE_DIR}/include) +target_include_directories(caprint PRIVATE ${PROJECT_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include) target_link_libraries(caprint ${cap_library}) install(