I am installing a library with the following code
export(TARGETS mylib
APPEND FILE mylibConfig.cmake
)
install(TARGETS mylib
EXPORT mylib-install
DESTINATION ${PREFIX_LIB}
)
where mylib has been previously been added as a library.
I am also installing a directory of headers as follows
On 03/12/2010 12:55 AM, Michael Wild wrote:
On 12. Mar, 2010, at 24:25 , Michael Surette wrote:
I am installing a library with the following code
export(TARGETS mylib
APPEND FILE mylibConfig.cmake
)
install(TARGETS mylib
EXPORT mylib-install
DESTINATION ${PREFIX_LIB}
)
where mylib
I am updating the CMake build files for a cross-platform project. One
of the tests is for strcasecmp for which I use CHECK_FUNCTION_EXISTS.
If it's not found the code generates its own function by that name.
This works well with GCC under Linux, including cross-compiling with
MinGW, as well
On 03/14/2010 06:14 AM, Michael Wild wrote:
On 03/13/2010 01:03 PM, Mateusz Loskot wrote:
Michael Surette wrote:
I am updating the CMake build files for a cross-platform project. One
of the tests is for strcasecmp for which I use CHECK_FUNCTION_EXISTS. If
it's not found the code generates
I am using CMake 2.8.1 and have the following in my main CMakeLists.txt
---
install(DIRECTORY ${FLTK_SOURCE_DIR}/FL
DESTINATION ${PREFIX_INCLUDE} USE_SOURCE_PERMISSIONS
PATTERN .svn EXCLUDE
)
if(CMAKE_HOST_UNIX)
install(SCRIPT ${FLTK_SOURCE_DIR}/CMake/install-symlinks.cmake)
On 05/03/2010 06:02 AM, Kārlis Repsons wrote:
On Friday 30 April 2010 09:35:46 Michael Wild wrote:
Write a script that creates for each of the combinations a separate build
tree and then invokes CMake as appropriate.
...
I hope this helps, otherwise we'll probably need a bit more
I have the following macro.
macro(FL_ADD_LIBRARY LIBNAME LIBTYPE LIBFILES)
if(${LIBTYPE} STREQUAL SHARED)
set(LIBRARY_NAME ${LIBNAME}_SHARED)
else()
set(LIBRARY_NAME ${LIBNAME})
endif(${LIBTYPE} STREQUAL SHARED)
add_library(${LIBRARY_NAME} ${LIBTYPE}
I am trying to get a library to build both static and dynamic libraries
to build in a project. It works except for the Visual C++ case, where
there is a name collision. I have tried several things including the
suggestion in the FAQ to add a PREFIX to one of the libraries. Here is
a section
On 30/01/16 09:42 PM, vadtec wrote:
> Let me start by saying I consider my self a cmake newbie. I've made
> simple makefiles and simple cmake files, but anything more complicated
> has to this point eluded me. Not for a lack of trying, searching,
> researching, trail, and a great deal of error: I
I have the following CMakeLists file which builds one of the examples in
FLTK as a separate project.
---
cmake_minimum_required(VERSION 2.6)
project(CubeView)
set(FLTK_DIR /home/msurette/build/fltk-release/)
find_package(FLTK REQUIRED NO_MODULE)
include(${FLTK_USE_FILE})
#run fluid -c to
On 2016-04-12 06:57 PM, Tamás Kenéz wrote:
I don't get how come the macro works because
`target_compile_definitions` needs at least 3 parameters. The second one
must be PRIVATE|PUBLIC|INTERFACE.
Tamas
On Tue, Apr 12, 2016 at 7:43 AM, Michael Surette
<mjsure...@gmail.com
<mailto:
I would like to use set target properties from within a function. ie
function(MINE TGT DEF)
target_compile_definitions("${TGT}" "${DEF}")
endfunction(MINE TGT DEF)
This doesn't work. If I change it to a macro, it does.
macro(MINE TGT DEF)
target_compile_definitions("${TGT}" "${DEF}")
On 13/04/16 09:20 AM, Tamás Kenéz wrote:
Okay, I see. The problem is that the ${DEF} is quoted so it won't fall
apart into separate arguments.
Tamás
Thanks, I'll give that a try tonight.
Mike
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
13 matches
Mail list logo