mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-06 23:29:31 -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
277 B
CMake
8 lines
277 B
CMake
enable_language(C)
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/bin")
|
|
add_subdirectory(SubDirPrefix)
|
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
add_executable(hello hello_sub_greeting.c)
|
|
target_link_libraries(hello greeting)
|
|
include(CheckOutput.cmake)
|