[CMake] how to determine debug or release mode?

2012-03-14 Thread Quân Phạm Minh
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

[CMake] add dll and header to project?

2012-03-14 Thread Quân Phạm Minh
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)

[CMake] how add library?

2012-03-14 Thread Quân Phạm Minh
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:

[CMake] how to configure cmake to help translate?

2012-03-06 Thread Quân Phạm Minh
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)

[CMake] structure in project in vs 2008

2012-03-05 Thread Quân Phạm Minh
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