Re: [CMake] Problems with EnternalProjectAdd

2019-02-18 Thread Romain LEGUAY
Hi, I think you need to set the variable CONFIGURE_COMMAND to empty like this: > ExternalProject_Add( > freetype > PREFIX "${BUILD_ENV}/freetype" > GIT_REPOSITORY "https://github.com/brooklynpacket/freetype2.git; > GIT_TAG 64bit CONFIGURE_COMMAND "" >

Re: [CMake] Check Build Type/Config Changed

2019-01-06 Thread Romain LEGUAY
dependencies in the good build type. Le sam. 5 janv. 2019 à 17:35, frodak17 a écrit : > > > On Sat, Jan 5, 2019 at 11:08 AM Romain LEGUAY > wrote: > >> Hi everyone, >> >> >> >> Is there a way to test if the build type changed? >> >>

[CMake] Check Build Type/Config Changed

2019-01-05 Thread Romain LEGUAY
Hi everyone, Is there a way to test if the build type changed? I try to create a cache variable with CMAKE_BUILD_TYPE as value but I found an unexpected result: CMAKE_BUILD_TYPE or CMAKE_CONFIGURATION_TYPES are not defined (I'm working on Windows with Visual Studio 2017, Visual Studio Code

Re: [CMake] ExternalProject, Superbuild and rebuild on Windows

2018-12-20 Thread Romain LEGUAY
Ninja) and is not used for IDE type > generators. > You should rather look for CMAKE_CONFIGURATION_TYPES as well as > CMAKE_CFG_INTDIR. > > Greetings, > > Kai > > http://kai-wolf.me > http://effective-cmake.com > > > > Am 20.12.2018 um 12:09 schrieb Romain LEG

[CMake] ExternalProject, Superbuild and rebuild on Windows

2018-12-20 Thread Romain LEGUAY
Hello everyone, I'm trying to build VTK and ITK along my project. For now, I use the trick to add an option to build VTK and ITK only once using ExternalProject_Add for all my dependencies and also for my project. This works great on Unix system but with a VS solution, the dependencies are not

Re: [CMake] Qt 5, macOS, bundle install

2018-10-09 Thread Romain LEGUAY
I found the solution!! I just add the plugins attached to the Qt Component (in my case Qt5Widgets) and install it: set(qtplugins) foreach(plugin ${Qt5Widgets_PLUGINS}) get_target_property(_loc ${plugin} LOCATION) list(APPEND qtplugins ${_loc}) endforeach()

[CMake] Qt 5, macOS, bundle install

2018-10-09 Thread Romain LEGUAY
Hello everyone, I try to install a bundle application on macOS. I successfully create the bundle and add all dependencies to Qt event the plugin platform libqcocoa.dylib. Unfortunately, when I launch the installed app, the window style is not the same as the build app style (macOS) as you can

[CMake] How to append a string on list inside a function

2018-09-27 Thread Romain LEGUAY
Hello everyone, I try to append a string (target name) on a list inside a function called in other CMakeLists. I have the following project’s tree: ├── CMakeLists.txt ├── test ├── CMakeLists.txt └── app ├── CMakeLists.txt ├── appA │ ├── CMakeLists.txt

Re: [CMake] find_library doesn't find .dll on windows

2018-06-01 Thread Romain LEGUAY
must be compiled with the > same version of Visual Studio used to compile the C client library > (which is Visual Studio 2013 for the static C client library built by > Oracle). > > > Regards, > > Juan > > > On 6/1/18 9:53 AM, Romain LEGUAY wrote: > > Hi everyone,

[CMake] find_library doesn't find .dll on windows

2018-06-01 Thread Romain LEGUAY
Hi everyone, I try to find MYSQL dynamic library on windows. For this, I use the following command: set(_PF86 "ProgramFiles(x86)") find_library( MYSQL_LIBRARY NAME "libmysql.dll" PATHS "$ENV{PROGRAMFILES}/MySQL/*/lib" "$ENV{${_PF86}}/MySQL/*/lib" "$ENV{SYSTEMDRIVE}/MySQL/*/lib"

Re: [CMake] Create Mac OS Bundle with VTK and Qt

2017-09-12 Thread Romain LEGUAY
;https://github.com/OpenChemistry/avogadroapp/blob/master/avogadro/lastinstall/CMakeLists.txt > > <https://github.com/OpenChemistry/avogadroapp/blob/master/avogadro/lastinstall/CMakeLists.txt>> > > Regards, > Oleksii Vilchanskyi > > On 8.9.2017 18:11, Romain LEGUAY wrote:

[CMake] Create Mac OS Bundle with VTK and Qt

2017-09-08 Thread Romain LEGUAY
Hello everyone, Since this morning, I try to create a Bundle Application using CMake (3.9.1). My application use VTK (8.x) and Qt (5.x). The find_package of those two libraries works greats (no problem to build and run the application). I have many problems: 1) I try to add an icon without

[CMake] CMake 3.0, Qt 5, plugins and multiple executables inside OS X Bundle

2014-08-06 Thread Romain Leguay
Hello everyone, I have a Qt application that search for another Qt applications and some plugins too. On Windows, I just create the executables in the same folder but on Mac OS X, I can't do that: I must create a bundle like this: MyApplication.app/ Contents/ Frameworks/

[CMake] Problems to use fixup_bundle on Mac OS X

2014-05-13 Thread Romain LEGUAY
Hello everyone, I try to build a small Qt application (helloGUI) with a shared library (hello). Here is my application and library tree: ├── CMakeLists.txt ├── gui │ ├── CMakeLists.txt │ ├── bundle.cmake │ ├── include │ │ └── MainWindow.hpp │ ├── src │ │ ├── MainWindow.cpp │ │

[CMake] Linking Error with Visual Studio 2013 x64

2014-04-17 Thread Romain Leguay
Hello everyone, I think I found a bug with CMake 2.8.12.2: I have on project with two sub-folders: a SHARED library and an executable that use the library. When I generate the Visual Studio solution, my application want to link with a static version of my library. I join you a very small

Re: [CMake] Linking Error with Visual Studio 2013 x64

2014-04-17 Thread Romain Leguay
, Romain Leguay wrote: I think I found a bug with CMake 2.8.12.2: I have on project with two sub-folders: a SHARED library and an executable that use the library. When I generate the Visual Studio solution, my application want to link with a static version of my library. I join you a very small

Re: [CMake] Linking Error with Visual Studio 2013 x64

2014-04-17 Thread Romain Leguay
not too much of pain and this way, we can tell which methods / class is exported. Hopefully, it's a new project ;) Regards, Romain -- Gruesse, Jakub -Original Message- From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Romain Leguay Sent: Donnerstag, 17. April 2014 14:27 To: Nils

[CMake] add_custom_command, TARGET_LINKER_FILE and CMAKE_BUILD_TYPE

2013-09-30 Thread Romain LEGUAY
Hello everyonne, I try to build my lybrary in debug and release mode in only one command. The purpose is to create a package with the minimum files (library in debug and release mode and headers) inside it. Actually, I do something like this: add_custom_command(OUTPUT

Re: [CMake] Superbuild subprojects and find_package()

2013-04-18 Thread Romain LEGUAY
Hello John, I made some generic scripts to answer has those kind of problem. There is an example in the folder Examples/FrameworkTest. You can find the scripts on GitHub: https://github.com/Athius/FrameworkCMakeToolkit I hope this is helpful. Best regards, Romain Le 18/04/13 05:38, John

[CMake] CPack - NSIS - Add multiple directory paths inside PATH environment variable

2012-11-08 Thread Romain LEGUAY
Hello everyone, I make a library and when I install it, I want to put inside the PATH environment variable the include directory path and the library path. I write this: set(CPACK_NSIS_MODIFY_PATH ON) set(CPACK_NSIS_EXTRA_INSTALL_COMMANDS \${EnvVarUpdate} \$0\ \PATH\ \A\ \HKCU\

Re: [CMake] FrameworkCMakeToolkit

2012-10-28 Thread Romain LEGUAY
Thank you Ken ! I just create an account on the cmake wiki so in few days the world’s going to know the greatness of FrameCMakeToolkit :-p! Romain De : Moreland, Kenneth [mailto:kmo...@sandia.gov] Envoyé : dimanche 28 octobre 2012 15:01 À : Romain LEGUAY Cc : cmake@cmake.org Objet

[CMake] FrameworkCMakeToolkit

2012-10-27 Thread Romain LEGUAY
Hello everyone! I did some generic CMake scripts to more easier build C/C++ projects. Those scripts permits to build static library, build executable, build cxxtest, generate Doxygen Documentation in html, latex and pdf formats, create source, binary and documentation (just the pdf file)

Re: [CMake] CPack: Project and independent subproject

2012-10-23 Thread Romain LEGUAY
Thank you Eric, I succeed to create the package by using CPACK_INSTALL_CMAKE_PROJECTS variable. I have some problem now to put my package in a specific folder. I try to set CPACK_TOPLEVEL_TAG variable but there is no change... Le 22/10/12 20:59, Eric Noulard a écrit : If you want to have

Re: [CMake] [SOLVED] CPack: Project and independent subproject

2012-10-23 Thread Romain LEGUAY
Le 23/10/12 10:45, Romain LEGUAY a écrit : Thank you Eric, I succeed to create the package by using CPACK_INSTALL_CMAKE_PROJECTS variable. I have some problem now to put my package in a specific folder. I try to set CPACK_TOPLEVEL_TAG variable but there is no change... I just resolve

[CMake] CPack: Project and independent subproject

2012-10-22 Thread Romain LEGUAY
Hello everyone, My c++ project contains a Library folder, an Applications folder and a Demos folder like this: Project/ |- Library/ |- include/ |- src/ |- Applications/ |- appliA/

[CMake] CMake 2.8.8-2.8.9 - Generate Xcode 4.4.1 project

2012-08-10 Thread Romain LEGUAY
there is some problem to generate the cmTryCompileExec file because when I do: *sudo cmake -GXcode .* I have no problem. Of course I have write access to my project folder so I don't really understand the problem here... If anyone has some clues ;). Regards, Romain LEGUAY Le 09/08/12 23

Re: [CMake] CMake 2.8.8-2.8.9 - Generate Xcode 4.4.1 project

2012-08-10 Thread Romain LEGUAY
Hi again! I succeed to generate a Xcode project (with a normal user) with cmake-gui. I hope this new information can lead you to the solution. Regards, Romain Le 10/08/12 11:34, Romain LEGUAY a écrit : Hi everyone! I have a problem to generate a Xcode project. I completely remove Xcode

Re: [CMake] CMake 2.8.8 Upgrade problem with Xcode on OS X 10.8

2012-08-09 Thread Romain LEGUAY
Hello, I have practically the same problem with OS X 10.7.4 and the last version of XCode (4.4.1). $ cmake -GXcode . -- The C compiler identification is GNU 4.2.1 -- The CXX compiler identification is GNU 4.2.1 -- Checking whether C compiler has -isysroot -- Checking whether C compiler has

[CMake] Easier way to override variables

2012-07-18 Thread Romain LEGUAY
Hello everyone, I don't find in any example to override a variable. I proceed this way: unset(MY_VAR CACHE) set(MY_VAR MY_NEW_VALUE) I have many variables so I would like to have just one line to change just the value of the variable (not its documentation) in one line like this:

Re: [CMake] [Resolved] Easier way to override variables

2012-07-18 Thread Romain LEGUAY
NEW_VALUE FORCE) Cheers, Yngve On Wednesday 18. July 2012 15.49.31, Romain LEGUAY wrote: Hello everyone, I don't find in any example to override a variable. I proceed this way: unset(MY_VAR CACHE) set(MY_VAR MY_NEW_VALUE) I have many variables so I would like to have just one line to change just

[CMake] Multiple project

2012-07-09 Thread Romain LEGUAY
Hello everyone, I have a big project organized like this: root/ - CMakeLists.txt CMake/ -- some .cmake scripts lib/ -- CMakeLists.txt include/ src/ CMake/ -- some .cmake scripts apps/

Re: [CMake] Multiple project

2012-07-09 Thread Romain LEGUAY
off of that. On Mon, Jul 9, 2012 at 6:58 AM, Romain LEGUAY romain.leg...@gmail.com wrote: Hello everyone, I have a big project organized like this: root/ - CMakeLists.txt CMake/ -- some .cmake scripts lib/ -- CMakeLists.txt

[CMake] find_library and static library

2011-11-17 Thread Romain LEGUAY
Hello everyone! I found in previous message there is none option to specify to find_library function to search just static library. It was for CMake 2.6. Has it got any change with the new version of CMake? I try to specify the name of the library like this: find_library(MY_STATIC_LIB NAMES

[CMake] Static Library output problem

2011-11-11 Thread Romain LEGUAY
Hello everyone! First, I need to thank you all the CMake developers for their awesome work!!! I try to build a static and a shared libraries. I set the LIBRARY_OUTPUT_DIRECTORY for each library target like this: set_target_properties(${sharedLib} PROPERTIES LIBRARY_OUTPUT_DIRECTORY

Re: [CMake] Static Library output problem

2011-11-11 Thread Romain LEGUAY
Ok thanks for your quick answers! It works perfectly now! Why don't we have just one variables for the library? With set_target_properties, we can define for each library the path. Romain Le 11/11/2011 15:38, Andreas Pakulat a écrit : On 11.11.11 15:18:05, Romain LEGUAY wrote: Hello