how determine build type in cmake like
if (CMAKE_BUILD_TYPE EQUAL DEBUG)
message(debug mode)
endif (CMAKE_BUILD_TYPE EQUAL DEBUG)
--
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
project A depend project B. B is library. I want provide project A header
files of project B and dll files in debug and release mode library of
project B. How I do in cmake?
add_definitions(-DQDisplay_export=__declspec(dllimport))
link_directories(${CMAKE_SOURCE_DIR}/display/build2008/debug)
I want add library (header file + dll file) to my project. How do I do in
cmake?
--
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:
I've read this link
http://www.cmake.org/Wiki/CMake:How_To_Build_Qt4_Software and I type code
below
set(${PROJECT_NAME}_HDRS
mainwindow.h
item.h
)
set(${PROJECT_NAME}_SRCS
main.cpp
mainwindow.cpp
item.cpp
)
SET(UPDATE_TRANSLATIONS TRUE)
SET(GLOB TRANSLATION_FILES FILES translations/*.ts)
how do in cmake to get visual studio 2008 project file have structure with
some folders below:
project
+ Form Files
+ Generate Files
+ Resource Files
+ Header Files
+ Source Files
--
Powered by www.kitware.com
Visit other Kitware open-source projects at