mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
For policy-specific tests, use the version before the policy was introduced. Otherwise, use 3.5 where possible. Also, remove `cmake_minimum_required()` and `project()` calls from individual cases where they are handled by `CMakeLists.txt`.
8 lines
252 B
CMake
8 lines
252 B
CMake
enable_language(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)
|