mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-02 03:39:43 -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`.
14 lines
347 B
CMake
14 lines
347 B
CMake
enable_language(CXX)
|
|
|
|
set_property(GLOBAL PROPERTY XCODE_EMIT_EFFECTIVE_PLATFORM_NAME ON)
|
|
|
|
set(CMAKE_XCODE_ATTRIBUTE_SUPPORTED_PLATFORMS "macosx iphonesimulator")
|
|
set(CMAKE_MACOSX_BUNDLE true)
|
|
|
|
add_library(library STATIC foo.cpp)
|
|
|
|
add_executable(main main.cpp)
|
|
target_link_libraries(main library)
|
|
|
|
install(TARGETS library ARCHIVE DESTINATION lib)
|