3 set(BUILD_STRING "generic")
6 include(nacl_path.cmake OPTIONAL)
10 if(NACL_FOUND AND CMAKE_THREAD_LIBS_INIT)
31 -DPROGNAME_STRING="${PROJECT_NAME}"
32 -DVERSION_STRING="${VERSION}"
33 -DBUILD_STRING="${BUILD_STRING}"
40 target_link_libraries(
43 ${CMAKE_THREAD_LIBS_INIT}
47 ${CMAKE_SOURCE_DIR}/../Documentation/Manpages/${PROJECT_NAME}.8
52 TARGETS ${PROJECT_NAME}
53 DESTINATION ${EXECUTABLE_INSTALL_PATH}
57 FILES ../../Documentation/Curvetun
58 DESTINATION ${DOC_INSTALL_PATH}
60 else(NACL_FOUND AND CMAKE_THREAD_LIBS_INIT)
62 message("NaCl was not found. Check if NACL_INCLUDE_DIR and NACL_LIB_DIR "
63 "are properly set in nacl_path.cmake. Skipping ${PROJECT_NAME} "
67 if(NOT CMAKE_THREAD_LIBS_INIT)
68 message("libpthread is missing on target. Skipping ${PROJECT_NAME} build.")
69 endif(NOT CMAKE_THREAD_LIBS_INIT)
71 endif(NACL_FOUND AND CMAKE_THREAD_LIBS_INIT)