I want to generate an executable in a file .bundleon Mac OSX 10.6.8using CMake. My CMakeLists.txt file looks like this:
cmake_minimum_required(VERSION 2.8)
PROJECT(TESTProject)
SET(MACOSX_BUNDLE_BUNDLE_NAME TEST)
ADD_EXECUTABLE(TEST MACOSX_BUNDLE main.cpp)
SET_TARGET_PROPERTIES(TEST PROPERTIES MACOSX_BUNDLE TRUE)
Then I call CMake:
CMake -G"Xcode" .
However, when I compile this program with Xcode 3.2.1, I constantly get a file TEST.appinstead of a file TEST.bundle.
What am I doing wrong here?
source
share