I have a question related to CMake in MAC. I make sure that the executable program will link the framework and libraries correctly with the following codes:
link
Another solution is as follows:
target_link_libraries(program "-framework CoreFoundation") target_link_libraries(program "-framework your_frame_work_name") set_target_properties(program PROPERTIES LINK_FLAGS "-Wl,-F/Library/Frameworks")