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.
21 lines
714 B
21 lines
714 B
10 years ago
|
|
||
|
file(GLOB sources "*.cpp")
|
||
|
|
||
|
find_library(FOUNDATION_LIBRARY Foundation)
|
||
|
find_library(COCOA_LIBRARY Cocoa)
|
||
|
find_library(COREGRAPHICS_LIBRARY CoreGraphics)
|
||
|
find_library(QUARTZCORE_LIBRARY QuartzCore)
|
||
|
find_library(OPENGL_LIBRARY OpenGL)
|
||
|
find_library(OPENCL_LIBRARY OpenCL)
|
||
|
find_library(LIBJNSAppWrapper JNSAppWrapper)
|
||
|
find_library(LIBJOpenCL JOpenCL)
|
||
|
find_library(LIBPNG png)
|
||
|
|
||
|
set(libs ${FOUNDATION_LIBRARY} ${COCOA_LIBRARY} ${COREGRAPHICS_LIBRARY} ${QUARTZCORE_LIBRARY} ${OPENGL_LIBRARY} ${OPENCL_LIBRARY} ${LIBJNSAppWrapper} ${LIBJOpenCL} ${LIBPNG})
|
||
|
|
||
|
foreach(source ${sources})
|
||
|
get_filename_component(exec ${source} NAME_WE)
|
||
|
add_executable(${exec} ${source})
|
||
|
target_link_libraries(${exec} ${libs})
|
||
|
endforeach()
|