You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
276 B
13 lines
276 B
2 years ago
|
enable_language(CXX)
|
||
|
|
||
|
set_property(GLOBAL PROPERTY XCODE_EMIT_EFFECTIVE_PLATFORM_NAME OFF)
|
||
|
|
||
|
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)
|