Skip to content
Snippets Groups Projects
Commit dccb06d6 authored by deuce's avatar deuce
Browse files

Add The CMake List

parent 08546c97
No related branches found
No related tags found
No related merge requests found
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment