[CMake] how add library?
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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] add dll and header to project?
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) include_directories(${CMAKE_SOURCE_DIR}/display) ADD_EXECUTABLE(${PROJECT_NAME} ${${PROJECT_NAME}_SRCS} ${${PROJECT_NAME}_HDRS} ${${PROJECT_NAME}_MOCS} ${${PROJECT_NAME}_RCC_SRCS}) SET(EXTRA_LIBS ${EXTRA_LIBS} display) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTSVG_LIBRARY} display ) I build successfull but when run meet error: the procedure entry point display@... could not be located in the dynamic link library display.dll -- 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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] how to determine debug or release mode?
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 check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] how to configure cmake to help translate?
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) SET(FILES_TO_TRANSLATE ) set(FILES_TO_TRANSLATE ${FILES_TO_TRANSLATE} ${${PROJECT_NAME}_SRCS}) if(UPDATE_TRANSLATIONS) QT4_CREATE_TRANSLATION(QM_FILE ${CMAKE_SOURCE_DIR}/translations ${FILES_TO_TRANSLATE} ${TRANSLATION_FILES}) else(UPDATE_TRANSLATIONS) QT4_ADD_TRANSLATION(${CMAKE_SOURCE_DIR}/translations ${TRANSLATION_FILES}) endif(UPDATE_TRANSLATIONS) where translations is folder in source folder, but cmake don't return any result. Help me fix this bug! Thank in advance! -- 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: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
[CMake] structure in project in vs 2008
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 http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake