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.
20 lines
556 B
20 lines
556 B
cmake_minimum_required(VERSION 2.8)
|
|
|
|
set(LIBNAME JNSAppWrapper)
|
|
|
|
file(GLOB sources "*.mm")
|
|
file(GLOB headers "*.hpp")
|
|
|
|
add_library(${LIBNAME} ${headers} ${sources})
|
|
|
|
find_library(FOUNDATION_LIBRARY Foundation)
|
|
find_library(COCOA_LIBRARY Cocoa)
|
|
find_library(COREGRAPHICS_LIBRARY CoreGraphics)
|
|
find_library(OPENGL_LIBRARY OpenGL)
|
|
|
|
set(libs ${FOUNDATION_LIBRARY} ${COCOA_LIBRARY} ${COREGRAPHICS_LIBRARY} ${OPENGL_LIBRARY})
|
|
|
|
target_link_libraries(${LIBNAME} ${libs})
|
|
|
|
install(TARGETS ${LIBNAME} DESTINATION lib)
|
|
install(FILES ${headers} DESTINATION include/J)
|
|
|