summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Ninja/SharedLib.cmake
blob: 1a78390e327b8c56a7f43c0115195cde3a48436e (plain)
1
2
3
4
5
6
7
8
cmake_minimum_required(VERSION 3.5)
project(hello C)
add_library(greeting SHARED greeting.c)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
add_executable(hello hello_with_greeting.c)
target_link_libraries(hello greeting)
include(CheckOutput.cmake)
include(CheckNoPrefixSubDir.cmake)