I added
set(CPACK_PACKAGING_INSTALL_PREFIX "MyPrefix")
and now I get
Project : error PRJ0019: A tool returned an error code from
"Performing Post-Build Event..."

Here is the CPACK related code:
        include(InstallRequiredSystemLibraries)
        set(CPACK_GENERATOR "NSIS")
        set(CPACK_INSTALL_CMAKE_PROJECTS "${CMAKE_BINARY_DIR};MyApp;ALL;/")
        set(CPACK_PACKAGE_NAME "MyApp")
        set(CPACK_PACKAGE_INSTALL_DIRECTORY "MyApp 1.2.2")
        set(CPACK_NSIS_MUI_ICON 
"${CMAKE_CURRENT_SOURCE_DIR}/images/face_profile.ico")
        set(CPACK_RESOURCE_FILE_LICENSE 
"${CMAKE_CURRENT_SOURCE_DIR}/license.txt")
        set(CPACK_CREATE_DESKTOP_LINKS MyApp)
        set(CPACK_PACKAGE_EXECUTABLES "MyApp" "MyApp")
        set(CPACK_PACKAGING_INSTALL_PREFIX "MyPrefix")
        set(CPACK_PACKAGE_VENDOR "MyPrefix")
        set(CPACK_NSIS_MENU_LINKS "http://cbl.uh.edu/urxd"; "MyPrefix")
        SET(CPACK_PACKAGE_VERSION_MAJOR "1")
        SET(CPACK_PACKAGE_VERSION_MINOR "2")
        SET(CPACK_PACKAGE_VERSION_PATCH "2")

Dat Chu

On Thu, Feb 5, 2009 at 12:15 PM, Clinton Stimpson <clin...@elemtech.com> wrote:
> Dat Chu wrote:
>>
>> Hello everyone,
>>
>> I would like to install my application under C:\Program
>> Files\MyPrefix\MyAppName
>>
>> I tried using
>>
>> set(CMAKE_INSTALL_PREFIX "MyPrefix")
>>
>> but that doesn't work. I can get MyApp to be installed under
>> C:\Program Files just fine (I guess because that is the default of
>> CPACK NSIS generator). Has anyone solved this problem before? I would
>> appreciate some guidance.
>>
>>
>
> Have you tried setting CPACK_PACKAGING_INSTALL_PREFIX=MyPrefix ?
>
> Clint
>
>
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to