Hi, try setting
packagename_DIR before FIND_PACKAGE()
19.11.2012 14:41, Boards Killer ?:
Hi CMake Community !
I am writing a CMake toolchain to cross compile our CMake project with
the Ubuntu ARM Linux toolchain. The CMake toolchain is given below.
I am facing the following problem.
@pack_version@)
set(CPACK_PACKAGE_FILE_NAME
@proj_name@-${CPACK_PACKAGE_VERSION}r@revision@-${CPACK_SYSTEM_NAME})
--CPackOptions.cmake.in---
02.11.2012 11:06, Eric Noulard пишет:
2012/11/1 Vyacheslav Karamov ubuntul...@yandex.ru:
Hi All!
Is it possible
(CPACK_PACKAGING_INSTALL_PREFIX ${install_dir})
set(CMAKE_INSTALL_RPATH ${install_dir})
endif()
02.11.2012 16:40, Vyacheslav Karamov пишет:
Thank you very much, Eric!
It works!
--- CMakeLists.txt --
include (FindSubversion)
if (NOT Subversion_FOUND)
message(FATAL_ERROR Please install
Hi All!
Is it possible to change rpath at the packaging stage?
I have CMake based project with CPack directives in its CMake script:
if(${CMAKE_SYSTEM_NAME} STREQUAL Linux AND EXISTS
${CMAKE_ROOT}/Modules/CPack.cmake)
SET(install_dir /opt/chatterbox)
SET(CMAKE_SKIP_BUILD_RPATH
Hi All!
I have project with the structure similar to this
worker
| |
| chatterbox
| ||
| |CMakeLists.txt
| |
| externals
| ||
| |sndlib
| | |
| | CMakeLists.txt
| CMakeLists.txt
|
CMakeLists.txt
$ cat
Thank you, but if I need variable two level up?
26.10.2012 12:07, Rolf Eike Beer пишет:
On Fr., 26. Okt. 2012 10:22:51 CEST, Vyacheslav Karamov ubuntul...@yandex.ru
wrote:
Hi All!
I have project with the structure similar to this
set (snd_lib sndlib)
add_library(${snd_lib} SHARED ...)
How
26.10.2012 12:16, Eric Noulard пишет:
2012/10/26 Vyacheslav Karamov ubuntul...@yandex.ru:
Hi All!
I have project with the structure similar to this
worker
| |
| chatterbox
| ||
| |CMakeLists.txt
| |
| externals
| ||
| |sndlib
Hi!
1. I don't understand what did you mean, but I guess
you want to create library test
ADD_LIBRARY(test SHARED ${FAN_SRC})
then you wanted to specify in which directory some libraries should be
searched
LINK_DIRECTORIES(${ACE_LIB_DIR})
and then you tried to link library ACE with your
(do_scoring_debug do_scoring)
endif()
but it seems to strange why should I need it.
___
WBR,
Vyacheslav Karamov.
--
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
Hi!
It's pity, but CMAKE_BUILD_TYPE is empty for CMake Visual Studio generator.
04.05.2012 23:40, Tim Gallagher ???:
Put an:
if(CMAKE_BUILD_TYPE STREQUAL Debug)
endif()
guard around the set_property call.
Tim
Hi All!
I have problem with CMake 2.8.8 in OS X Lion.
CMake include_directories() doen't add Header Search Path to
CMake-generated Xcode project.
WBR,
Vyacheslav.
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
Problem solved by removing Fink version and installing CMake from cmake.org
27.04.2012 18:56, Vyacheslav Karamov написал:
Hi All!
I have problem with CMake 2.8.8 in OS X Lion.
CMake include_directories() doen't add Header Search Path to
CMake-generated Xcode project.
WBR,
Vyacheslav
Hi All!
My project's (named Compare) structure is similar to this:
Root
|
SphinX
|
sphinxbase (autotools project)
Sound
|
|-DoScoring (my Cmake-based project)
|-Compare (my Cmake-based project)
|-CMakeLists.txt
|-src (source files
Hi All!
I have a problem with target_link_libraries. It can't link with shared
libraries not from directory listed in LD_LIBRARY_PATH.
1. When I try to link shared library with the full path obtained from
find_library, my library is passed to gcc without -l option as ordinary
object file.
Pakulat ???:
Hi,
On Mon, Apr 23, 2012 at 13:24, Vyacheslav Karamov
ubuntul...@yandex.ru mailto:ubuntul...@yandex.ru wrote:
Hi All!
I have a problem with target_link_libraries. It can't link with
shared libraries not from directory listed in LD_LIBRARY_PATH.
1. When I try to link
Hi All!
I need to add some preprocessor definitions to my target.
Here is the code:
if (WIN32)
set (COMPILE_DEFINITIONS_Debug
_DEBUG
USE_MP3READER2
_EXPORTS
_USRDLL
_CRT_SECURE_NO_WARNINGS
_USE_32BIT_TIME_T
)
set (COMPILE_DEFINITIONS_Release
NDEBUG
It also doesn't work
set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_DEBUG
USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T)
set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_RELEASE
USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T)
;_USE_32BIT_TIME_T)
else(WIN32)
set_property(TARGET ${lib_name} PROPERTY COMPILE_DEFINITIONS_DEBUG
USE_MP3READER2)
set_property(TARGET ${lib_name} PROPERTY COMPILE_DEFINITIONS_RELEASE
USE_MP3READER2)
endif(WIN32)
works fine, thanks!
17.04.2012 11:19, Vyacheslav Karamov написал:
It also
Hi All!
I have a problem with find_library in Windows. It does find static
library, but not import library.
It's confusing to me.
if (${CMAKE_SYSTEM_NAME} STREQUAL Windows)
find_library(spinx
NAMES sphinxbase
${CMAKE_CURRENT_SOURCE_DIR}/../../Sphinx/sphinxbase/bin/Release
)
Yes I do.
17.04.2012 11:49, Rolf Eike Beer написал:
It also doesn't work
set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_DEBUG
USE_MP3READER2;DLL_EXPORTS;_USRDLL;_CRT_SECURE_NO_WARNINGS;_USE_32BIT_TIME_T)
set_property(GLOBAL PROPERTY COMPILE_DEFINITIONS_RELEASE
/sphinxbase/bin/Debug
DOC SphinX debug library
)
endif()
17.04.2012 11:47, Vyacheslav Karamov написал:
Hi All!
I have a problem with find_library in Windows. It does find static
library, but not import library.
It's confusing to me.
if (${CMAKE_SYSTEM_NAME} STREQUAL Windows)
find_library
When I specified full library name with extension find_library worked.
But still have both debug and release versions of library being linked
with my target.
17.04.2012 12:13, Vyacheslav Karamov написал:
This code doesn't work also:
if (${CMAKE_SYSTEM_NAME} STREQUAL Windows)
find_library
I'm happy. It works!
target_link_libraries(${lib_name}
debug ${do_scoring_debug}
debug ${spinx_debug}
optimized ${do_scoring}
optimized ${spinx}
)
17.04.2012 14:59, Vyacheslav Karamov написал:
When I specified full library name with extension find_library worked.
But still have both debug
Hi All!
I have some MinGW static libraries and I need to use them in VS2008
project which is generated by CMake.
if (${CMAKE_SYSTEM_NAME} STREQUAL Windows)
set(CMAKE_FIND_LIBRARY_PREFIXES ${CMAKE_FIND_LIBRARY_PREFIXES} lib)
set(CMAKE_FIND_LIBRARY_SUFFIXES .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
24 matches
Mail list logo