From 15099aee763dabdc3742e0c6fd15aa0fb2cf87ac Mon Sep 17 00:00:00 2001 From: QLeblanc Date: Thu, 28 May 2020 22:01:18 +0200 Subject: [PATCH] =?UTF-8?q?Transf=C3=A9rer=20les=20fichiers=20vers=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..9e89c59 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,18 @@ +cmake_minimum_required( VERSION 2.8 ) +set(CMAKE_BUILD_TYPE Release) +project (ssl CXX) + +find_package(PkgConfig) +pkg_check_modules(ALSA alsa REQUIRED) + + +add_executable (my_exe sound-source-loc.cpp) +target_link_libraries (my_exe ${ALSA_LIBRARIES}) +target_compile_options(my_exe PUBLIC ${ALSA_CFLAGS_OTHER}) +target_include_directories(my_exe PUBLIC ${ALSA_INCLUDE_DIRS}) +#set_target_properties(my_exe PROPERTIES LINKER_LANGUAGE C) +#add_library(asoundlib.h STATIC IMPORTED /usr/include/alsa) +#target_include_directories(my_exe PUBLIC ${LIBASOUND2-DEV_INCLUDE_DIRS}) +install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/my_exe + DESTINATION bin + RENAME ${CMAKE_PROJECT_NAME}-my_exe)