From dccb06d6ebe6caaaf496f6c6a3d35f8463873114 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Mon, 10 Feb 2014 02:04:51 +0000 Subject: [PATCH] Add The CMake List --- src/tone/CMakeLists.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/tone/CMakeLists.txt diff --git a/src/tone/CMakeLists.txt b/src/tone/CMakeLists.txt new file mode 100644 index 0000000000..0559ddfd4c --- /dev/null +++ b/src/tone/CMakeLists.txt @@ -0,0 +1,22 @@ +project (Tone C) + +cmake_minimum_required(VERSION 2.8.11) + +INCLUDE (CheckIncludeFiles) + +set(SOURCE + tone.c +) + +add_executable(tone ${SOURCE}) + +if("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_LIST_DIR}") + add_subdirectory(../xpdev xpdev) +ENDIF() +add_dependencies(tone xpdev) +target_include_directories(tone PRIVATE ../xpdev) +target_compile_definitions(tone PRIVATE $<TARGET_PROPERTY:xpdev,INTERFACE_COMPILE_DEFINITIONS>) +target_include_directories(tone PRIVATE $<TARGET_PROPERTY:xpdev,INTERFACE_INCLUDE_DIRECTORIES>) +target_link_libraries(tone xpdev) + +install(TARGETS tone DESTINATION bin) -- GitLab