Re: [CMake] Support for SWIG and Node.js

2017-09-28 Thread Yegor Yefremov
On 27.09.2017 17:18, Michael Ellery wrote: >> On Sep 26, 2017, at 10:39 PM, Yegor Yefremov >> wrote: >> >> I've seen, that CMake has updated UseSWIG in version 3.8.x. But it doesn't >> seem to support the following use case: >> >> swig -c++

[CMake] Support for SWIG and Node.js

2017-09-26 Thread Yegor Yefremov
I've seen, that CMake has updated UseSWIG in version 3.8.x. But it doesn't seem to support the following use case: swig -c++ -javascript -node interface.i src.c I.e. I can define "-c++" via set_property(SOURCE interface.i PROPERTY CPLUSPLUS ON), but how to specify "-node" or "-jsc" or "-v8"? B

[CMake] CMake toolchain file for multiarch environment (Debian 8)

2015-07-01 Thread Yegor Yefremov
I'm trying to construct a suitable toolchain for CMake 3.0.2. I took Buildroot's toochain.cmake and trying to tweak it: set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR armv7l) # specify the cross compiler SET(CMAKE_C_COMPILER "/usr/bin/arm-linux-gnueabihf-gcc") SET(CMAKE_CXX_COMPILER "/

Re: [CMake] [Eclipse CDT4 Generator] issue finding windres.exe

2010-06-28 Thread Yegor Yefremov
>> I'm using CMake, MinGW and Eclipse as described here >> http://www.cmake.org/Wiki/Eclipse_CDT4_Generator. In my project I >> need to compile a resource file, so I've used the >> add_custom_command() to achieve this. If I run make in MSYS it >> succeeds, but running from Eclipse causes a problem

[CMake] [Eclipse CDT4 Generator] issue finding windres.exe

2010-06-28 Thread Yegor Yefremov
I'm using CMake, MinGW and Eclipse as described here http://www.cmake.org/Wiki/Eclipse_CDT4_Generator. In my project I need to compile a resource file, so I've used the add_custom_command() to achieve this. If I run make in MSYS it succeeds, but running from Eclipse causes a problem, since Ecli

Re: [CMake] Data dir

2010-06-09 Thread Yegor Yefremov
> I am working on a CPack/NSIS based installer for MariaDB. The early > parts were really easy to do, but now it becomes more complicated. > > First problem: I have a set of files with the bootstrap MySQL/MariaDB > database files. Some users might not want to install these, if they are > installin

[CMake] CPack: NSIS: how to install files to APPDATA?

2010-04-16 Thread Yegor Yefremov
I need to install some configuration files to application data directory. I found following variable in NSIS docs (http://nsis.sourceforge.net/Docs/Chapter4.html) as $APPDATA: "The application data directory. Detection of the current user path requires Internet Explorer 4 and above. Detection o

Re: [CMake] Correct syntax for CPACK_NSIS_CREATE_ICONS [SOLVED]

2010-04-14 Thread Yegor Yefremov
Hi Droscy, > Hi, probably you need to escape the backslashes 3 times, because when > cmake passes the option to cpack, it removes one escape, and cpack does > the same when creating nsis file. And you can also use single quote mark > in order to get the quotation on the final nsis file. > > So yo

[CMake] Correct syntax for CPACK_NSIS_CREATE_ICONS

2010-04-13 Thread Yegor Yefremov
I'm using CPack for NSIS and would like to place my exe file in $SMPROGRAMS\$STARTMENU_FOLDER and not in $SMPROGRAMS\$STARTMENU_FOLDER\bin. The only way to do it is using CPACK_NSIS_CREATE_ICONS. With this expression set(CPACK_NSIS_CREATE_ICONS "CreateShortCut \$SMPROGRAMS\\$STARTMENU_FOLDER\\

Re: [CMake] Crosscompiling for arm linux on cmake 2.8.0

2010-04-07 Thread Yegor Yefremov
> I’m trying to cross compile for ARM with this command: > > > > cmake . -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_TOOLCHAIN_FILE=arm-gcc3.4.5.cmake > > > > Here is my toolchain file: > > > > INCLUDE(CMakeForceCompiler) > > > > # this one is important > > SET(CMAKE_SYSTEM_NAME Linux) > > s

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-29 Thread Yegor Yefremov
Alexander Neundorf wrote: > On Thursday 28 January 2010, Hendrik Sattler wrote: >> Zitat von Yegor Yefremov : >>> are these two statements not doubled? >>> >>> +#elif defined(__GNU__) && defined(__ELF__) && defined(__ARMEL__) >>> +# d

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-28 Thread Yegor Yefremov
O.K. Here are some lines of my CMakeLists.txt: set (CMAKE_C_COMPILER arm-linux-gcc) set (CMAKE_STRIP arm-linux-strip) > > Oh, if you do that in CMakeLists.txt this is quite late. You should use a > toolchain file as described in the wiki. I'll try it later. message (ST

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-27 Thread Yegor Yefremov
Brad King wrote: > Yegor Yefremov wrote: >> O.K. Here are some lines of my CMakeLists.txt: >> >> set (CMAKE_C_COMPILER arm-linux-gcc) >> set (CMAKE_STRIP arm-linux-strip) >> message (STATUS "ABI ${CMAKE_C_COMPILER_ABI}") >> >> After ru

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-26 Thread Yegor Yefremov
Brad King wrote: > Yegor Yefremov wrote: >> Alexander Neundorf wrote: >>> You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to >>> either "ELF ARM" or "ELF ARMEABI". >> Do I see it right, that this variable is relevant when buil

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-26 Thread Yegor Yefremov
Alexander Neundorf wrote: > please apply the attached patch to Modules/CMakeCompilerABI.h (current CVS, > but 2.8.0 should work too). Thank you for the patch. I applied it to the 2.8.0. > You should then get the variables CMAKE_(C|CXX)_COMPILER_ABI set to > either "ELF ARM" or "ELF ARMEABI". D

Re: [CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-25 Thread Yegor Yefremov
Alexander Neundorf wrote: > On Friday 22 January 2010, Yegor Yefremov wrote: >> Hello, >> >> I have two toolchains to compile programs for ARM Debian: one supporting >> older ABI (Etch) and one for EABI (Lenny). How can I determine the ABI >> version using CMake? &

[CMake] How to determine a ABI version of the arm-linux-gcc?

2010-01-22 Thread Yegor Yefremov
Hello, I have two toolchains to compile programs for ARM Debian: one supporting older ABI (Etch) and one for EABI (Lenny). How can I determine the ABI version using CMake? Thank you in advance. Best regards, Yegor ___ Powered by www.kitware.com Visi

Re: [CMake] How to set CPACK_PACKAGE_VERSION from a gengetopt configuration file

2009-09-21 Thread Yegor Yefremov
>> Hello, >> >> I use gengetopt to generate command line parser for my application. The >> configuration file *.ggo also specifies programs version like this: >> >> # Name of your program >> package "hwtest" # don't use package if you're using automake >> # Version of your program >> version "1.2.

[CMake] How to set CPACK_PACKAGE_VERSION from a gengetopt configuration file

2009-09-21 Thread Yegor Yefremov
Hello, I use gengetopt to generate command line parser for my application. The configuration file *.ggo also specifies programs version like this: # Name of your program package "hwtest" # don't use package if you're using automake # Version of your program version "1.2.1" # don't use version

Re: [CMake] custom doxygen target

2007-07-25 Thread Yegor Yefremov
_ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake Best regards, Yegor Yefremov ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] ADD_CUSTOM_COMMAND issues

2007-07-16 Thread Yegor Yefremov
Brandon Van Every wrote: On 7/13/07, Yegor Yefremov <[EMAIL PROTECTED]> wrote: # executables add_executable (test ${SRCS}) add_custom_command (TARGET test POST_BUILD COMMAND ctags -R WORKING_DIRECTORY ${TEST_SOURCE_DIR} COMMENT "Creating tags" VERBATIM) Does changing the

Re: [CMake] ADD_CUSTOM_COMMAND issues

2007-07-13 Thread Yegor Yefremov
s been built It is only said when the command will happen and not where to place the statement in the CMakeLists.txt. I interpret this as if I define PRE_LINK or PRE_BUILD then the cmake will evaluate this properly. It should be also mentioned in the docu

Re: [CMake] ADD_CUSTOM_COMMAND issues

2007-07-13 Thread Yegor Yefremov
Brandon Van Every wrote: On 7/13/07, Yegor Yefremov <[EMAIL PROTECTED]> wrote: Hello, I want to use ADD_CUSTOM_COMMAND to create tags when building the project. The first problem, ADD_CUSTOM_COMMAND must be placed after the target definition. Should it be so? Yes. And it's reason

[CMake] ADD_CUSTOM_COMMAND issues

2007-07-13 Thread Yegor Yefremov
e. But for me it is not the case. Best regards, Yegor Yefremov project (TEST) # some parameters set (CMAKE_VERBOSE_MAKEFILE OFF) # sources set (SRCS test.c) add_custom_command (TARGET test POST_BUILD COMMAND ctags -R WORKING_DIRECTORY ${HWTEST_SOURCE_DIR} COMMENT "Creating tags"

[CMake] Location of cmake stuff files

2007-07-12 Thread Yegor Yefremov
t: main.c header.h I create CMakeLists.txt and after "cmake ." call I suddenly have more extra files than my project itself. Best regards, Yegor Yefremov ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake