[CMake] CPack OS X bundle : generator expression for CPACK_BUNDLE_STARTUP_COMMAND

2017-11-28 Thread Nicholas Yue
I am using CMake 3.10

I can't seems to find a way to tell the OS X bundle where to find the
compiled binary.

I get the following errors:

Run CPack packaging tool...
CPack: Create package using Bundle
CPack: Install projects
CPack: - Run preinstall target for: OSXBundle
CPack: - Install project: OSXBundle
CPack: Create package
CPack Error: Error copying $ to
/Users/nicholas/projects/OSX_BundleRPath/build/_CPack_Packages/Darwin/Bundle/OSXBundle-0.1.1-Darwin/MyApp.app/Contents/MacOS/MyApp
CPack Error: Error copying startup command.  Check the value of
CPACK_BUNDLE_STARTUP_COMMAND.
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: OSXBundle
make: *** [package] Error 1


I have the following CMakeLists.txt:

CMAKE_MINIMUM_REQUIRED(VERSION 3.8)

PROJECT (OSXBundle)

FIND_PACKAGE (Boost REQUIRED)

ADD_EXECUTABLE (myapp
  src/main.cpp
  )

INSTALL ( TARGETS
  myapp
  DESTINATION
  ./bin
  )

IF (APPLE)
  # GET_TARGET_PROPERTY ( APP_LOCATION myapp LOCATION )
  SET ( APP_LOCATION "$" )

  SET ( CPACK_BUNDLE_NAME "MyApp" )

  SET ( CPACK_GENERATOR "Bundle" )
  SET ( CPACK_BUNDLE_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/resources/Info.plist
)
  SET ( CPACK_BUNDLE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/resources/MyApp.icns )
  SET ( CPACK_PACKAGE_ICON ${CMAKE_CURRENT_SOURCE_DIR}/resources/MyApp.icns
)
  SET ( CPACK_BUNDLE_STARTUP_COMMAND ${APP_LOCATION} )
ENDIF ()

INCLUDE ( CPack )
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] Which version of NSIS to use with CMake's CPack ?

2017-11-21 Thread Nicholas Yue
Hi,

  Is there a recommended version of NSIS which works best with CMake's
CPack ?

Cheers
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] CMake truncating include path ?

2017-06-03 Thread Nicholas Yue
Hi,

  I am using CMake 3.8.2 on OS X with

-G "Eclipse CDT4 - Unix Makefiles"

  I have the following in my CMakeLists.txt

MESSAGE ( "HDK_INCLUDE_DIR = ${HDK_INCLUDE_DIR}")
INCLUDE_DIRECTORIES ( ${HDK_INCLUDE_DIR} )

I see the following printed out

HDK_INCLUDE_DIR =
/Applications/Houdini/Houdini16.0.627/Frameworks/Houdini.framework/Versions/Current/Resources/toolkit/include

However, the generated .cproject has the following line



resulting in those header files are not being indexed

How do I instruct CMake not to truncate the path I provide when it is
generating the Eclipse .cproject file ?

The generated Makefiles and associated *.make are fine as I can build and
deploy successfully.

Cheers
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] Windows Debug/Release/Multi-threaded[Static/Dynamic] combinations build all ?

2016-07-03 Thread Nicholas Yue

Hi,

I have been using CMake for some time now but usually for Linux and 
OS X


Recently, I was looking into Windows build.

I am wondering if CMake is able to do a combination of building a 
target (for windows) which has the various combination of 
/MT/MTd/MDD/MDDd runtime


I would like to then construct a CPack of all the combinations of 
libraries (say, I use the naming convention of Boost on Windows)


Cheers

--
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
https://ca.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


[CMake] FIND_PACKAGE () : self location ?

2014-11-09 Thread Nicholas Yue
Hi,

  I am improving an in-house Find*.cmake and need to determine
(programmatically) where it (the Find*.cmake file) is located because I
need to run a companion python script. Is there some variable I can query ?

  If not, I will find a different way but the above seems more intuitive
and less fragile when moving things around.

Cheers
-- 
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] Generator : Visual Studio 11 Win64 - AdditionalIncludeDirectories error

2014-11-09 Thread Nicholas Yue
Hi,

  Using CMake 2.8.12.2 on Windows 7 x64 with Visual Studio 2012 WDExpress,
my include_directories() information are being embedded in the
AdditionalOptions part of the generated *.vcxproj XML file instead of the
AdditionalIncludeDirectories part

  I have tried with CMake 3.0.x, same problem

  This cause the builds to fail because the compiler options will be filled
with incorrect information.

  I tried googling but it does not seem to be an existing problem.

  Is my installation bad otherwise, is there a work around ?

Cheers
-- 
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] ExternalProject_Add with custom build/make command for Boost

2014-09-25 Thread Nicholas Yue
Hi,

  I am trying to build Boost (1.47.0) using CMake's ExternalProject_Add()

  I got it to build and install via it's bjam ./b2 install

  However, there is an implicit make install generated by CMake which
will fail because there is no Makefile so to speak with an install target.

  ExternalProject_Add() has many configuration parameter and I am wondering
if there is one which I can use to tell it not to attempt to make install

Cheers
-- 
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] ExternalProject_Add dependency graph (dot/graphviz?) ?

2014-09-23 Thread Nicholas Yue
Hi Micha,

  My interest is in show me the dependencies the external project depends
on

  I am considering migrating an in-house build system to build opensource
projects to using CMake.
  As there are many external packages and versions (close to 100), I'd like
to be able to visualize their dependency.
  Once the new system based on CMake is working, I need to build them for
different target OS to assist in migration from current OS to future OS
version.

  e.g.

ExternalProject_Add ( python264_static

  )

ExternalProject_Add ( python264
  DEPENDS
  python264_static

  )

ExternalProject_Add ( boost_1_47_0
  DEPENDS
  python264

  )

ExternalProject_Add ( alembic_1_5_5
  DEPENDS
  python264 boost_1_47_0

  )

Cheers


On 23 September 2014 11:58, Micha Hergarden micha.hergar...@gmail.com
wrote:

 On 09/22/2014 04:59 PM, Nicholas Yue wrote:
  Hi,
 
  CMake has graphviz output capability for dependency within a project.
 
  Is there a way to graph dependency at the ExternalProject_Add()
  level ?
 
  Cheers
 
 Hello Nicholas,

 Can you clarify your question a bit more? Do you mean 'show me the
 external projects a target in my project depends on' or do you mean
 'show me the dependencies the external project depens on', or something
 different altogether?

 With kind regards,
 Micha Hergarden




-- 
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] ExternalProject_Add dependency graph (dot/graphviz?) ?

2014-09-22 Thread Nicholas Yue

Hi,

CMake has graphviz output capability for dependency within a project.

Is there a way to graph dependency at the ExternalProject_Add() level ?

Cheers

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake


[CMake] CMake 3.0.1 : Visual Studio 2012 solution not useable

2014-08-17 Thread Nicholas Yue
Hi,

  Whilst upgrading compilers to 2012 (Visual Studio 2012 Express Desktop),
I also upgraded CMake to 3.0.1 as I read there were updates to make it work
with the Express version of Visual Studio.

  However, I found that the generated solutions and *.vcxproj files not
working at all. Looking at the content in the *.vcxproj file, it looks like
this and VS 2012 has a hard time finding even it's own header files let
alone the additional ones.
  Note : The include directories is show how being specified as additional
options

ItemDefinitionGroup
Condition='$(Configuration)|$(Platform)'=='Release|x64'
ClCompile
  AdditionalOptions .
C:/PROGRA~1/SIDEEF~1/HOUDIN~1.507/toolkit/include
C:/PROGRA~2/MICROS~3.0/VC/include C:/Program Files (x86)/Windows
Kits/8.0/Include/um C:/Program Files (x86)/Windows
Kits/8.0/Include/shared -w14996 -bigobj
%(AdditionalOptions)/AdditionalOptions
  AdditionalIncludeDirectoriesC:\Program Files\Side Effects
Software\Houdini
13.0.507\toolkit\include;%(AdditionalIncludeDirectories)/AdditionalIncludeDirectories

AdditionalIncludeDirectories;%(AdditionalIncludeDirectories)/AdditionalIncludeDirectories
  AssemblerListingLocationRelease//AssemblerListingLocation
  CompileAsCompileAsCpp/CompileAs
  DisableSpecificWarnings4355;4996/DisableSpecificWarnings

Cheers
-- 
Nicholas Yue
Graphics - Arnold, Alembic, RenderMan, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Re: [CMake] What is the best way to clean up CMakeFiles and CMakeCache.txt if aborting build completely?

2014-01-15 Thread Nicholas Yue

On 16/01/14 7:08 AM, Ben Phillips wrote:

Hello list,

I came across this problem when I tried to write a CMakeLists.txt that 
prevents building in the source tree. So I would try something like this:


string(COMPARE EQUAL ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} 
_is_in_src)

if(_is_in_src)
file(REMOVE_RECURSE ${CMAKE_SOURCE_DIR}/CMakeFiles 
${CMAKE_SOURCE_DIR}/CMakeCache.txt)

message(FATAL_ERROR Aborting...in-source builds are forbidden)
endif(_is_in_src)

When running cmake . the error is given as expected. However, the 
source directory is polluted with CMakeFiles and CMakeCache.txt. I 
expect they can't be removed while the CMakeLists.txt is being 
interpreted (perhaps they are but are just created before exit again).


Is there a better way to do this? Perhaps some function/macro that 
aborts the process abnormally, cleaning up as if nothing ever happened 
exists?

Hi Ben,

I have found that doing an out-of-source build makes it much 
easier to do clean up.


For example :

$cd /tmp/some-dev-dir
$cmake cmake-flags-you-want /home/ben/project/myawesomeproject

Hope that helps.

Cheers

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Xcode generator : is it commonly used ?

2013-09-02 Thread Nicholas Yue

Hi,

I have been using CMake for a couple of years on the Windows, Linux 
and OS X platform. (c++ development)


In the last 12 months or so, I have found that I can no longer 
generate usable XCode files, I have been monitoring the situation and 
trying to determine what I have change or what CMake have change or what 
Apple has change but so far, no luck.


As such, I have switch to generating Eclipse project files which 
works (mostly, except for the include path problem of system libraries 
[that's a CDT problem])


I am currently on OS X 10.7 and am wondering if there are other 
developer on the same OS version and XCode 4.4.1 and have success with 
that tool chain and hope to learn the correct work flow since the 
changes at Apple with the move from  /Developer to /Application for XCode


Cheers

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] 2.8.11rc1 - OSX Lion and Xcode 4.4.1

2013-03-21 Thread Nicholas Yue

Hi,

I am trying out CMake 2.8.11rc1 on OS X Lion with XCode 4.4.1

When I use the Xcode generator, I get the following messages
=
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/nicholas/temp/xcode/build
=

When I attempt to do a build regardless of the above, I get the 
following


=
Xcode 4.4.1
Build version 4F1003
Tan-Meng-Yues-MacBook:build nicholas$ xcodebuild
=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Project WITH THE 
DEFAULT CONFIGURATION (Debug) ===

Check dependencies

PhaseScriptExecution CMake Rules 
build/Project.build/Debug/ZERO_CHECK.build/Script-3F926441115C46B2986F8D6A.sh

cd /Users/nicholas/temp/xcode
/bin/sh -c 
/Users/nicholas/temp/xcode/build/Project.build/Debug/ZERO_CHECK.build/Script-3F926441115C46B2986F8D6A.sh

echo 

make -f /Users/nicholas/temp/xcode/build/CMakeScripts/ReRunCMake.make
make[1]: *** No rule to make target 
`/Users/nicholas/temp/xcode/build/CMakeFiles/2.8.11-rc1/CMakeCCompiler.cmake', 
needed by 
`/Users/nicholas/temp/xcode/build/CMakeFiles/cmake.check_cache'. Stop.

make: *** [/Users/nicholas/temp/xcode/build/CMakeFiles/ZERO_CHECK] Error 2
Command /bin/sh failed with exit code 2


** BUILD FAILED **


The following build commands failed:
PhaseScriptExecution CMake Rules 
build/Project.build/Debug/ZERO_CHECK.build/Script-3F926441115C46B2986F8D6A.sh

(1 failure)
=


Cheers

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] 2.8.11rc1 - OSX Lion and Xcode 4.4.1

2013-03-21 Thread Nicholas Yue

On 22/03/13 2:19 AM, Sean McBride wrote:

On Thu, 21 Mar 2013 22:27:41 +1100, Nicholas Yue said:


 I am trying out CMake 2.8.11rc1 on OS X Lion with XCode 4.4.1

My dashboard here:
http://open.cdash.org/buildSummary.php?buildid=2851443

Is running OS X 10.7.5, CMake 2.8.11rc1, and Xcode 4.4.1.  It's able to build 
(nightly) CMake itself, are you?

I am running OS X 10.7.4

I am able to build CMake itself successfully.

It's just that cmakexbuild is not able to compile a simple project which 
it creates itself. The simple project is just a single helloworld.cpp 
i.e. ADD_EXECUTABLE ( helloworld helloworld.cpp)


Cheers

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake 2.8.10 with Xcode 4.4.1

2012-11-21 Thread Nicholas Yue

On 19/11/12 10:31 PM, David Cole wrote:

In the CMake source tree, can you try to build Tests/Tutorial/Step1 with the 
Xcode generator and report the results?

$ xcodebuild Tutorial.xcodeproj
=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Tutorial WITH THE 
DEFAULT CONFIGURATION (Debug) ===

Check dependencies
unsupported build action 'Tutorial.xcodeproj'


** BUILD FAILED **


The following build commands failed:
Check dependencies
(1 failure)



Can you send your simple CMakeLists.txt file and its single source here?

Files are attached


What does your machine report when you run xcode-select -print-path?

$ xcode-select -print-path
/Applications/Xcode.app/Contents/Developer

Cheers

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

ADD_EXECUTABLE ( nicholas main.cpp )
#include stdio.h

int main()
{
printf(Hello world\n);
return 0;
}

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] CMake 2.8.10 with Xcode 4.4.1

2012-11-19 Thread Nicholas Yue

Hi,

I have a simple CMakeLists.txt file compiling a single source via 
the generator Xcode


I have been following recent conversation about CMake 2.8.8/2.8.9 
having problem with Xcode 4.4.1 and read that the problem might be 
resolved in CMake 2.8.10


I am on OS X 10.7.4, I have no problem building with the standard 
Makefile generator or the Eclipse generator.


When I tried to build the generated project with xcodebuild, I get 
the following



=== BUILD AGGREGATE TARGET ZERO_CHECK OF PROJECT Project WITH THE 
DEFAULT CONFIGURATION (Debug) ===

Check dependencies

PhaseScriptExecution CMake Rules 
Project.build/Debug/ZERO_CHECK.build/Script-88F80E18C3E647F2A9484A6C.sh

cd /Users/nicholas/temp/xcode
/bin/sh -c 
/Users/nicholas/temp/xcode/Project.build/Debug/ZERO_CHECK.build/Script-88F80E18C3E647F2A9484A6C.sh

echo 

make -f /Users/nicholas/temp/xcode/CMakeScripts/ReRunCMake.make
make[1]: *** No rule to make target 
`/Users/nicholas/temp/xcode/CMakeFiles/2.8.10/CMakeCCompiler.cmake', 
needed by `CMakeFiles/cmake.check_cache'.  Stop.

make: *** [/Users/nicholas/temp/xcode/CMakeFiles/ZERO_CHECK] Error 2
Command /bin/sh failed with exit code 2


** BUILD FAILED **


The following build commands failed:
PhaseScriptExecution CMake Rules 
Project.build/Debug/ZERO_CHECK.build/Script-88F80E18C3E647F2A9484A6C.sh

(1 failure)



Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
https://vimeo.com/channels/naiadtools

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Different compiler in sub directory

2012-09-05 Thread Nicholas Yue

Hi,

I have a need to build different parts of a project using different 
version of g++


If I set the top level CMakeLists.txt compiler

via -DCMAKE_CXX_COMPILER=/usr/local/bin/g++

and subsequently use another compiler

SET ( CMAKE_CXX_COMPILER /usr/bin/g++ )

will the compiler being set only scoped within that directory (when 
I use ADD_SUBDIRECTORY) or would that become global for other projects 
later...


Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Creating executable - including an external *.o

2012-07-22 Thread Nicholas Yue

Hi,

Due to the way an SDK is set up, I need to build a single MyGC.m 
file to MyGC.o (with special flags that the usual CXX_FLAGS/C_FLAGS 
conflicts) so I am doing it via execute_process()


In the add_executable() command, I would like to include that 
single MyGC.o during link time, how does one specify a single object 
file for linking in an executable?


Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [cmake-developers] cmake 2.8.9 rc2 - OS X Lion

2012-07-18 Thread Nicholas Yue

On 17/07/12 11:59 PM, David Cole wrote:

On Tue, Jul 17, 2012 at 9:12 AM, Brad King brad.k...@kitware.com wrote:

On 07/16/2012 07:10 PM, Nicholas Yue wrote:

Hi,

I came across this error while bootstrapping a build on OS X Lion. Has
anyone else seen this ?

/usr/include/c++/4.2.1/cstdarg:60: error: ‘::va_list’ has not been declared
In file included from /usr/include/c++/4.2.1/iosfwd:45,
from /usr/include/c++/4.2.1/ios:43,
from /usr/include/c++/4.2.1/istream:44,
from /usr/include/c++/4.2.1/fstream:45,
from
/Users/nicholas/temp/cmake-2.8.9-rc2/cmake-2.8.9-rc2/Source/cmStandardIncludes.h:84,
from
/Users/nicholas/temp/cmake-2.8.9-rc2/cmake-2.8.9-rc2/Source/cmStandardIncludes.cxx:12:
/usr/include/c++/4.2.1/bits/c++locale.h: In function ‘int
std::__convert_from_v(int* const, char*, int, const char*, ...)’:
/usr/include/c++/4.2.1/bits/c++locale.h:76: error: ‘va_list’ was not
declared in this scope
/usr/include/c++/4.2.1/bits/c++locale.h:76: error: expected `;' before
‘__args’
/usr/include/c++/4.2.1/bits/c++locale.h:77: error: ‘__args’ was not
declared in this scope
make: *** [cmStandardIncludes.o] Error 1
-
Error when bootstrapping CMake:
Problem while running make
-
Log of errors:
/Users/nicholas/temp/cmake-2.8.9-rc2/cmake-2.8.9-rc2/Bootstrap.cmk/cmake_bootstrap.log
-

Thanks for reporting back.  Does this happen with
CMake 2.8.8's sources or is this new in 2.8.9?

This happens only with the 2.8.9 sources


And please let us know what version of Mac OS X and what version of
Xcode/gcc/clang you're using.

OS X Lion : version 10.7.4
Xode : version 4.3.2
gcc : i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. 
build 5658) (LLVM build 2336.9.00)
clang : Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on 
LLVM 3.1svn)


Let me know if you need additional information or tests I need to run.

Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers


Re: [CMake] MSVC++ IDE is licensed but CMAKE build appears to fail to pick up licence from command line

2012-06-30 Thread Nicholas Yue

On 1/07/12 10:25 AM, Asterion Daedalus wrote:
I have found an problem that appears in two open source projects I 
downloaded.  Both appear to balk because of a missing or expired VC++ 
licence.  This is despite the fact that the IDE is running with a 
licence.


MSN help simply claims it is a bug in CMAKE so I feel that I will be 
ping-ponging.


Has anyone else come across, or more importantly solved the problem? 
 I am trying a re-install of MS VC++ at this moment as I am assuming 
it is the culprit because two CMAKE makes, from different authors, are 
having the same problem.

I came across a similar problem in the past.

Do you have another installation of Visual Studio somewhere on your 
systems e.g. the Express edition or Visual Studio 2008 ?


I didn't get to the bottom of how the problem went away but we had 
Express installed and purchased the Professional version later and 
evaluated for the 30 days. Around the end of the evaluation period (last 
couple of days) is where the problem started even when we put in the 
proper license information. As I recall, it went away **after** the 
evaluation period as the software started using the purchased license.


As with Windows, rebooting may help.

HTH.

Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] CMake + Eclipse on OS X : OpenGL and GLUT headers

2012-06-30 Thread Nicholas Yue

Hi,

I am using CMake 2.8.8

I have been generating Eclipse project and building my software 
successfully both on the command line and within Eclipse.


However, when I open up my project in Eclipse, the indexer fails to 
find the necessary headers for OpenGL and GLUT


Moreover, I noticed the following via ccmake

GLUT_INCLUDE_DIR /System/Library/Frameworks/GLUT.framework/Headers
OPENGL_INCLUDE_DIR /System/Library/Frameworks/OpenGL.framework

Note the differences in the directory Headers

Is there additional steps for the OS X platform so that code 
completion and C++ indexer works properly when using OpenGL and GLUT on 
OS X when generating Eclipse project files via CMake.


Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake 2.8.9-rc1 ready for testing!

2012-06-23 Thread Nicholas Yue

On 23/06/12 5:34 AM, David Cole wrote:

I am happy to announce that CMake 2.8.9 has entered the release candidate stage!

You can find the source and binaries here:

   http://www.cmake.org/files/v2.8/?C=M;O=D

Hi,

I tried bootstrapping on OS X Lion 10.7.4 x64 with XCode 4.3.2 and 
GCC 4.2.1


The boot strapping process created files like 
Bootstrap.cmk/cmConfigure.h and Bootstrap.cmk/cmVersionConfig.h which 
contains ^M characters.


This causes the bootstrap compile to fail.

I am not good with shell script debugging but it seems related to 
the shell function cmake_version_component()


My interest in building CMake 2.8.9rc1 on OS X was to check if the 
failure to find Eclipse 3.7 on OS X when using the Eclipse generator has 
been resolved.


Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CPack : WM_SETTINGCHANGE broadcast

2012-05-27 Thread Nicholas Yue

Hi,

I understand from reading the following article

http://support.microsoft.com/kb/104011 
http://support.microsoft.com/kb/104011


that one need to broadcast a WM_SETTINGSCHANGE for environment 
variable updated via the registry key to take effect in the current session


I have been able to update the registry and re-login in have the 
effect of updating the environment, using the information from the 
following URL


http://nsis.sourceforge.net/Docs/Chapter4.html 
http://nsis.sourceforge.net/Docs/Chapter4.html


However, I was unable to determine a way from within CPack to do a 
WM_SETTINGSCHANGE broadcast so that the user installing the software I 
am packaging not to have to log-out and log-in for the updated 
environment variable to take effect.


Is there a different approach ?

Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue


--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] Packaging : Debug + Release together

2012-05-22 Thread Nicholas Yue

On 22/05/12 18:20, Kfir Lavi wrote:


I would just compile it twice and create my-debug.rpm and my.rpm
Is that a viable solution for you?

I am gravitating towards that option.

Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Packaging : Debug + Release together

2012-05-21 Thread Nicholas Yue

Hi,

I can build debug and release code by setting the CMAKE_BUILD_TYPE 
variable.


What is the recommend process/workflow if I wish to 
build/install/package both the Debug and Release build into a single 
e.g. RPM, as part of an automated process (e.g. nightly build) ?


How will CPack find the different builds for packaging ?

Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
http://www.proceduralinsight.com/
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CPack : Executing post install script (portable way)

2012-04-26 Thread Nicholas Yue
Hi,

  What is the proper way to execute a post install script in NSIS,
PackageMaker and sh-archive ?

  From reading the
http://www.vtk.org/Wiki/CMake:CPackPackageGenerators, it seems
different package generator has different ways.

  My immediate need is to run a batch script for NSIS at a known
location (relative to the actual installed path i.e. I am taking into
account the user may choose a different installation from the standard
path).

  Is CPACK_NSIS_MUI_FINISHPAGE_RUN suitable ? How does CPack/NSIS
determine the path to that script/executable ?

  How do I determined (within CMake/CPack) the installation directory
chosen by the user ?

Regards
-- 
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CPack : NSIS - registry key setting/over-riding

2012-04-25 Thread Nicholas Yue
Hi,

  As part of my NSIS packaged installer, I need to register an
environment variable e.g. MYSOFTWARE_PATH

  I see the variable CPACK_PACKAGE_INSTALL_REGISTRY_KEY but am unsure
about the syntax

  I tried the following but it didn't work

  SET ( CPACK_PACKAGE_INSTALL_REGISTRY_KEY
HKEY_CURRENT_USEREnvironmentMYSOFTWARE_PATH C:MyApp
)


  Do I have to create the registry key in the first place ? If so, can
CPack do that ?

Regards
-- 
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CPack : NSIS multiple licensing choice/option

2012-04-20 Thread Nicholas Yue
Hi,

  I have a situation where I need to package up a build for
installation where there are two available license choices
  (1) Non-commercial/evaluation
  (2) Commercial

  For the NSIS packaging, is there a way to show different licensing
text depending on some radio button choice?

  Also, is there a way to track the choice that was made ?

Regards
-- 
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] External project source

2012-02-13 Thread Nicholas Yue

On 13/02/12 6:47 PM, Eric Noulard wrote:

2012/2/13 Nicholas Yueyue.nicho...@gmail.com:

Hi,

There is an existing project I have access to that already have CMake
configuration file but the way it is written requires alot of preprocessing
steps (python, shell etc) before it is usable.

I wanted to investigate a cleaner (truer to CMake original design
purpose) usage of CMake,

So, I have an  original-project directory which contains both the source
and the CMakeLists.txt in a nested directory structure.

I want to create my own CMake hierarchy (structure the same way) but
reference the source code in the original-project directory location.

How do I tell CMake to refer to source code at some other top level
directory as a starting point.

Is there such a concept in CMake ?

I am not sure to fully understand you request but in a CMakeLists.txt
you can perfectly
refer to source located outside the directory the CMakeLists.txt is in,
you can use either relative or absolute path and do something like:

add_executable(NiceTarget ../../relpath/to/source.c
${CMAKE_SOURCE_DIR}/abspath/to/another.c)
Yes, I know I can do that. I am hoping to avoid maintaining a hierarchy 
of such modification.


There are 42 CMakeLists.txt files each with multiple libraries, test and 
such.


I was hoping there is a way to (assuming I maintain the same hierarchy) 
tell CMake to start looking for source from some other top level 
directory 'once' and it will be able to find the source in the 'other' 
location that is different to my 'cleaned-up' version of CMakeLists.txt


Regards


this is usually a bad idea but this should work.

Now that said if you do that for compatibility purpose in order to
maintain the legacy build
before doing the switch to genuine CMake build then may be using a
VCS like git would
be a better way to go.

I have this as a fall back.

Best regards

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] External project source

2012-02-12 Thread Nicholas Yue

Hi,

There is an existing project I have access to that already have 
CMake configuration file but the way it is written requires alot of 
preprocessing steps (python, shell etc) before it is usable.


I wanted to investigate a cleaner (truer to CMake original design 
purpose) usage of CMake,


So, I have an  original-project directory which contains both the 
source and the CMakeLists.txt in a nested directory structure.


I want to create my own CMake hierarchy (structure the same way) 
but reference the source code in the original-project directory location.


How do I tell CMake to refer to source code at some other top level 
directory as a starting point.


Is there such a concept in CMake ?

At the risks of confusing matter, my closest example would be 
something vaguely resembling VPATH


Regards

--
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] MACOSX_BUNDLE for a shell script application

2012-01-23 Thread Nicholas Yue

Hi,

I wish to package up a collection of dylibs, python scripts and a 
starter shell script as a MACOSX_BUNDLE


E.g. given a file startup.sh

Is there some way to do something like (but as a MACOSX_BUNDLE)

add_executable ( STARTUP_SCRIPT IMPORTED IMPORTED_LOCATION 
${CMAKE_SOURCE_DIR}/startup.sh )


I'd be happy to have a look at other open source project which 
already does that and learn from them.


Regards

--
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] FindPythonLibs : Version selection on OS X

2012-01-12 Thread Nicholas Yue

Hi,

Using the FindPythonLibs macros on OS X Lion always returns the 
standard Python 2.7 (shipped with Lion)


There are other versions of Python which is also available in OS X 
Lion.


Is it possible to inform FindPythonLibs to look for a different 
version of Python e.g. 2.6, if so, how does one go about doing that ?


Regards

--
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CPack : Embedding other installer (*.msi, *.exe)

2012-01-11 Thread Nicholas Yue

Hi,

I have a packaging/installation scenario where my files are 
dependent on another MSI/EXE to be executed/install


I tried googling NSIS cpack embed installer but didn't find the 
answer.


Is somewhere I can read up on this way of packaging up and 
installer on Windows ?


I am currently using a related macro (provided by CMake) to install 
the Visual Studio redistributable so I guess it is possible.


Regards

--
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CPack - Windows 7 x64

2012-01-03 Thread Nicholas Yue

Hi,

I am building and installing full 64bit applications and libraries.

When I package it up as an installer via NSIS, it installs to 
C:\Program Files (x86)\


What CPACK_ variables do I need to inform cpack that it should be 
installed in C:\Program Files\


Regards

--
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CPack : OS X package installation directory

2011-12-25 Thread Nicholas Yue

Hi,

I would like to package up my software to install (via DMG and PKG) 
to the /Applications/my-software directory


How should one configure CMakeLists.txt INSTALL and CPack variable 
to install software in the above location i.e. /Applications/my-software


Also, is there a way to check the installation without actually 
doing the full installation steps e.g. is there some flags/files to 
check the installation directory after the DMG/PKG is created ?


Regards

--
Nicholas Yue
Graphics - RenderMan, Houdini, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CDT - source file references

2011-10-19 Thread Nicholas Yue
Hi,

  Using CMake 2.8.6 on Linux, I generated a CDT configuration in a different
directory from the source (out of source build?)

  The generated CDT configuration does not provide references within the
Eclipse IDE to those files (C++/headers) it is compiling. Is there some
CMake setting to trigger that ?

  I prefer out of source build for easier maintenance.

Regards
-- 
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CDT - source file references

2011-10-19 Thread Nicholas Yue
Found the answer to my question here:

http://www.vtk.org/Wiki/Eclipse_CDT4_Generator

On 20 October 2011 09:40, Nicholas Yue yue.nicho...@gmail.com wrote:

 Hi,

   Using CMake 2.8.6 on Linux, I generated a CDT configuration in a
 different directory from the source (out of source build?)

   The generated CDT configuration does not provide references within the
 Eclipse IDE to those files (C++/headers) it is compiling. Is there some
 CMake setting to trigger that ?

   I prefer out of source build for easier maintenance.

 Regards
 --
 Nicholas Yue
 Graphics - RenderMan, Visualization, OpenGL, HDF5
 Custom Dev - C++ porting, OSX, Linux, Windows
 http://au.linkedin.com/in/nicholasyue




-- 
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] CDT generator - CDT 8.0.1 [Visual Studio compiler support]

2011-10-18 Thread Nicholas Yue
On 10 October 2011 03:00, Alexander Neundorf a.neundorf-w...@gmx.netwrote:

 On Friday 07 October 2011, Nicholas Yue wrote:
  Hi,
 
Using CMake 2.8.4, I see Eclipse CDT4 generator support for NMake
 
With the recent release of CDT 8.X, there is Visual Studio compiler
  as a new/separate toolchain.
 
Are there plans to support that as a generator?

 Not sure anything special is needed for that.
 Did you try it already ?


Hi Alex,

  Sorry for the slow reply.

  Yes, I have tried that.

  The generated .cproject and .project files seems to be missing the include
path definitions

  I noticed this indirectly when I tried to use the Indexer in CDT 8.0.1,
the include path from the CMakeLists.txt didn't seems to make it to the
generated .cproject and .project files so the indexer does not know where to
look for the necessary headers for the given project. This means that the
auto-completion feature is not taken advantage of.

Regards
-- 
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

[CMake] CDT generator - CDT 8.0.1 [Visual Studio compiler support]

2011-10-06 Thread Nicholas Yue
Hi,

  Using CMake 2.8.4, I see Eclipse CDT4 generator support for NMake

  With the recent release of CDT 8.X, there is Visual Studio compiler
as a new/separate toolchain.

  Are there plans to support that as a generator?

Regards
-- 
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
http://au.linkedin.com/in/nicholasyue
--
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Copying files (different name)

2011-05-26 Thread Nicholas Yue

Hi,

With the FILE ( COPY .. DESTINATION) command, is there a way to 
create a second copy of a file at the DESTINATION with a different name 
? In my case, my DESTINATION is the same as the original location.


Basically, I am trying to duplicate this command line

copy header.h.vc header.h

Regards

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Idea - Modules development and management

2009-12-07 Thread Nicholas Yue

Hi,

   Does it make sense to separate out the development and deployment of 
Modules in CMake?


   I see an advantage because Modules update are more frequent as more 
packages are added compare to the release cycle of CMake itself.


   Maybe there is an easier way? Environment variable to point to an 
updated Module path (note : I am referring to a complete Module 
including everything that was originally ship with a given version of 
CMake, plus updates)


Regards

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Sharing Modules between different installation of CMake

2009-02-18 Thread Nicholas Yue
Hi,

  I am testing different version of CMake on multiple platform to
ensure my custom modules works fine on all combination.

  I find it troublesome to copy my custom module to all the different
../share/cmake-X.Y/Modules directory

  Is there an alternative to telling CMake that there are additional
Module search path over and above those it normally searches?

Regards
-- 
Nicholas Yue
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] Sharing Modules between different installation of CMake

2009-02-18 Thread Nicholas Yue

Robert Haines wrote:

Hi,


 I am testing different version of CMake on multiple platform to
ensure my custom modules works fine on all combination.

 I find it troublesome to copy my custom module to all the different
../share/cmake-X.Y/Modules directory

 Is there an alternative to telling CMake that there are additional
Module search path over and above those it normally searches?


Sure, you can use: set(CMAKE_MODULE_PATH /path/to/modules). That 
path will be checked first so you can use it to override things in the 
CMake distribution too.


In my projects I put the CMake stuff that I want to distribute with my 
code into a top-level directory called CMake and use it like so: 
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake).


Cheers,
Rob

Is there a way to manage this without modifying the CMakeLists.txt file 
e.g. via some environment variable(s)?


Using environment variable allow me to control the version to be use 
which may be different between production and development engineers. It 
also allows me to roll back-forth between versions as need be.


Regards

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Python coverage submission to CDash via UsePythonTest.cmake

2008-10-29 Thread Nicholas Yue

Hi,

   Is there a way to submit python coverage information via the 
UsePythonTest.cmake scripts?


   I would like to find out how it can be done.

   My coverage information are generated via the coverage.py from

  http://nedbatchelder.com/code/modules/coverage.html

Regards

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] SWIG - Adding Java module on OSX

2008-09-14 Thread Nicholas Yue

Hi,

   I am using the macro SWIG_ADD_MODULE.

   SWIG_ADD_MODULE ( ribclient java RIBClient.i ParameterList.cpp )

   The generated linker flag does not produce a loadable JNI module (it 
compiles and build but is not usable).


/usr/bin/c++   -bundle -headerpad_max_install_names  -o 
libribclient.jnilib CMakeFiles/ribclient.dir/RIBClientJAVA_wrap.cxx.o 
CMakeFiles/ribclient.dir/ParameterList.cpp.o 
-L/usr/local/cppunit/1.12.1/lib -L/Users/nicholas/temp/pkg/OpenEXR/lib 
-L/usr/local/ILMBase/1.0.1/lib 
-L/Applications/Graphics/3Delight-7.0.51/lib -L. ../libutils.a -l3delight


   I have found that the correct flag should be -dynamiclib instead of 
-bundle


   i.e.
/usr/bin/c++   -dynamiclib -headerpad_max_install_names  -o 
libribclient.jnilib CMakeFiles/ribclient.dir/RIBClientJAVA_wrap.cxx.o 
CMakeFiles/ribclient.dir/ParameterList.cpp.o 
-L/usr/local/cppunit/1.12.1/lib -L/Users/nicholas/temp/pkg/OpenEXR/lib 
-L/usr/local/ILMBase/1.0.1/lib 
-L/Applications/Graphics/3Delight-7.0.51/lib -L. ../libutils.a -l3delight


   I ended putting this in the CMakeLists.txt file to get the above 
desired outcome


   IF (APPLE)
   SET(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS -dynamiclib 
-headerpad_max_install_names)

   ENDIF (APPLE)

   If this is indeed a bug, I hope the proper fix will make it's way 
into 2.6.2 as I see that an RC is in the works.


Regards

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Global linker/library flag specification

2008-07-18 Thread Nicholas Yue
Hi,

  There is a ADD_DEFINITIONS tag to add compiler flags globally.

  Is there an equivalent for linker flags (i.e. not target specific
but all target)

  I have the following scenario.

  I am trying to write a custom configuration file so that all target
build in Debug build type will automatically link to the gcov
library and also gets the -pg linker flag.

  I am trying to make it easier for my developers to compile their
projects with coverage/profiling information and also for valgrind to
get better information.

  I want to reduce the requirements on the developer part to specify
the right flags combination.

  My current attempt at a workaround is to specify the flags as e.g.

  cmake -DCMAKE_EXE_LINK_FLAGS

  but that is only useful for the -pg, I still need a way to specify
the -lgcov globally.

  specifying it as an option to cmake is not ideal as I want to move
it outside of the command line and into an in-house custom
configuration which all developer use thus reducing their workload.

Regards
-- 
Nicholas Yue BSc (Hons) MACM
Graphics - RenderMan, RIB, Visualization, OpenGL, netCDF
Custom Dev - C++ porting, OSX, Linux, Windows
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


Re: [CMake] CMake support for Python

2008-07-15 Thread Nicholas Yue
2008/7/10 Mathieu Malaterre [EMAIL PROTECTED]:
 You are missing the enable_testing() + include(CTest) thingy

Thanks Mathieu, I have got the test and CDash submission working fine.

However, I can't seem to get the ADD_PYTHON_COMPILEALL_TEST call working
It needs a copy of compileall.py to work but as I understand, there is
already compileall.py ship with python, should that file be duplicated
in each project that require the compileall capability within CMake ?

8--8--8--8--8--8--8--8--
Start processing tests
Test project 
/Users/nicholas/projects/pi_svn/programming/python/UnitTesting/build
  1/  2 Testing COMPILE_ALL-/Users/nicholas/pr***Failed
  2/  2 Testing PYTHON-TEST  Passed

50% tests passed, 1 tests failed out of 2

The following tests FAILED:
  1 - 
COMPILE_ALL-/Users/nicholas/projects/pi_svn/programming/python/UnitTesting/src
(Failed)
Errors while running CTest
make: *** [test] Error 8
8--8--8--8--8--8--8--8--

8--8--8--8--8--8--8--8--
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

ENABLE_TESTING()

PROJECT ( unittest )

INCLUDE ( CTest )
INCLUDE ( FindPythonInterp )
INCLUDE ( UsePythonTest )

# Require compileall.py file to be present, not good
ADD_PYTHON_COMPILEALL_TEST ( ${CMAKE_SOURCE_DIR}/src )
# ADD_PYTHON_COMPILEALL_TEST ( ${CMAKE_SOURCE_DIR}/test )

SET_SOURCE_FILES_PROPERTIES(test/GeometryTestSuite.py PROPERTIES PYTHONPATH
  ${CMAKE_SOURCE_DIR}/src)
ADD_PYTHON_TEST(PYTHON-TEST test/GeometryTestSuite.py)

8--8--8--8--8--8--8--8--
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CTest with Python unittest

2008-07-08 Thread Nicholas Yue
Hi,

  I have had a look at the FAQ for CTest but did not find any specific
answer hence I am posting here.

  I have a couple of Python projects which has unittest as part of
their code base.

  I'd like to submit their unit test run output on to a CDash server,
is there any information available to do this?

  Is this a CTest question or a CDash question ?

Regards
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] CMake support for Python

2008-07-08 Thread Nicholas Yue
Hi,

  I'd like to build and run Python unit test using CMake.

  In the keyword Project, there is support for a language tag after
the project name.

  Is there any example of using CMake to run Python unit tests?

Regards
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Company wide customization

2008-06-25 Thread Nicholas Yue

Hi,

   What is the best approach to company wide customization for CMake?

   Which file is always loaded by CMake upon start up? Is there another 
approach?


   If it is some particular file(s), can I share them with different 
platform version of CMake?


Regards

___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Inhouse custom module deployment advice

2008-06-15 Thread Nicholas Yue
Hi,

  I am building up a collection of custom Find***.cmake module which
I'd like to roll out internally to multiple platform Linux/Windows/OSX
and various variant of each of them.

  I like to have only one copy of each module file.

  I know there is the CMAKE_MODULE_PATH but from my current usage of
the variable, I have to tell cmake explicitly.

  This means more work for each new developer or automated build
client I deploy.

  Is there a better or more efficient way to tell cmake (on all
platform) where to find additional module files?

Regards
-- 
Nicholas Yue BSc (Hons) MACM
Graphics - RenderMan, RIB, Visualization, OpenGL, netCDF
Custom Dev - C++ porting, OSX, Linux, Windows
http://www.proceduralinsight.com/about.html
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] OSX universal binary support

2008-01-14 Thread Nicholas Yue
Hi

  I see a mention of support for OSX universal binary in the release notes.

  However, from running cmake --help-html, I was unable to find any
explanation on how to use the feature.

  I am building on the command line using make.

  However, if I need to use XCode build to get the feature working, that's
fine too.

Regards
-- 
Nicholas Yue BSc (Hons) MACM
Need help with software development process?
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] DLL import/export flag differentiation

2007-11-24 Thread Nicholas Yue
Hi,

  I am attempting to migrate the ANN build to CMake for my own ease of cross
platform maintenance.

  The cmake configuration works fine on OSX but have problem Windows because
of the additional linkage requirement.

  I understand that there is no per target DEFINITIONS setup so I'd like to
hear advice from experience cmake user how I should configure my build.

  The library needs the -DDLL_EXPORT while the application must not have
that set so that it imports the exported symbols.

  At the moment, my build fails at the ann_test target because it inherits
the -DDLL_EXPORT flag from the top.

Regards

8--8--8--8--8--8--8--8--8--8--
PROJECT (ANN)

INCLUDE_DIRECTORIES ( ../include )

IF (WIN32)
ADD_DEFINITIONS ( -DDLL_EXPORTS -DANN_PERF -DANN_NO_RANDOM
-D_CRT_SECURE_NO_DEPRECATE )
SET ( LIBRARY_TYPE SHARED )
ELSE (WIN32)
SET ( LIBRARY_TYPE STATIC )
ENDIF (WIN32)

ADD_LIBRARY ( ANN ${LIBRARY_TYPE}
  ../src/ANN.cpp
  ../src/bd_fix_rad_search.cpp
  ../src/bd_pr_search.cpp
  ../src/bd_search.cpp
  ../src/bd_tree.cpp
  ../src/brute.cpp
  ../src/kd_dump.cpp
  ../src/kd_fix_rad_search.cpp
  ../src/kd_pr_search.cpp
  ../src/kd_search.cpp
  ../src/kd_split.cpp
  ../src/kd_tree.cpp
  ../src/kd_util.cpp
  ../src/perf.cpp
  )

ADD_EXECUTABLE ( ann_test
  ../test/ann_test.cpp
  ../test/rand.cpp
)

ADD_EXECUTABLE ( ann_sample
  ../sample/ann_sample.cpp
)

ADD_EXECUTABLE ( ann2fig
  ../ann2fig/ann2fig.cpp
)

TARGET_LINK_LIBRARIES ( ann_test ANN )

TARGET_LINK_LIBRARIES ( ann_sample ANN )

TARGET_LINK_LIBRARIES ( ann2fig ANN )

INSTALL ( TARGETS ann_test ann_sample ann2fig ANN
  RUNTIME DESTINATION bin
  LIBRARY DESTINATION lib
  ARCHIVE DESTINATION lib)
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] Conditional dependency

2007-11-06 Thread Nicholas Yue
Hi,

  I have a project which is build a library fine with CMake (has
around 100 source file).

  ADD_LIBRARY ( mylib STATIC a.cpp b.cpp c.cpp etc )

  The content in b.cpp is relevant to only some platform platform.

  How do I tell CMake that file b.cpp is only to be include as depends
of library mylib only if a platform string match.

  I can achieve the desired effect with

  IF (WIN32)
  ADD_LIBRARY ( mylib STATIC a.cpp c.cpp etc)
  ELSE (WIN32)
  ADD_LIBRARY ( mylib STATIC a.cpp b.cpp c.cpp etc)
  ENDIF (WIN32)

  As there are hundreds of file, I want to avoid duplicating and add
to maintainence.

Regards
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Relative path when referencing SWIG files?

2007-09-15 Thread Nicholas Yue
Hi,

  I am trying to organise my SWIG files into a central location as there are
multiple langauges that I am supporting.

  I have found that introducing relative path breaks my build

  CMake complains that it cannot find the generated source file and that the
expected location would be in ../utils

  How do I tell CMake to find the *.i files in location that is not in the
current directory, I am using symbolic link as a work around at the moment
but want to avoid that as symlinks is not supported by SVN on Windows.

--working version--
SET_SOURCE_FILES_PROPERTIES ( RIBClient.i PROPERTIES CPLUPLUS ON )
 SET_SOURCE_FILES_PROPERTIES ( RIBClient.i PROPERTIES SWIG_FLAGS
-includeall )

SWIG_ADD_MODULE ( ribclient python RIBClient.i ParameterList.cpp )

--not working version--
 SET_SOURCE_FILES_PROPERTIES ( ../utils/RIBClient.i PROPERTIES CPLUPLUS ON )
 SET_SOURCE_FILES_PROPERTIES ( ../utils/RIBClient.i PROPERTIES SWIG_FLAGS
-includeall )

SWIG_ADD_MODULE ( ribclient python ../utils/RIBClient.i ParameterList.cpp )

Regards
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

[CMake] [Q] Searching mailing list archive about swig-python-osx-bundle?

2007-09-07 Thread Nicholas Yue
Hi,

  I'd like to search the mailing list archive of information on how to
construct a cmake file to build a swig python extension (as a bundle) on OS
X?

  My current build (of the swig python extension) on Linux is linking and
running fine but on OS X, the same cmake configuration file builds it as a
shared library but my understanding is that it needs to be build as a
bundle. I have an old Makefile that does that but I am hoping to migrate my
builds to use only CMake as it gives me much more flexibility and much less
maintanance.

Regards
___
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake