[CMake] problem setting CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX
Yogesh Marwaha
yogeshm.007 at gmail.com
Mon Jan 28 12:31:31 EST 2008
Hi
I am having problem setting values for CMAKE_BUILD_TYPE and CMAKE_INSTALL_PREFIX
Here is CMakeLists.txt in project root directory
==================================
project (eSpy)
cmake_minimum_required (VERSION 2.4.0)
set (CMAKE_BUILD_TYPE Release)
set (CMAKE_INSTALL_PREFIX "/usr")
find_package (Qt4 REQUIRED)
add_subdirectory (eSpy)
add_subdirectory (eSpyDLin)
Here is CMakeLists.txt in eSpy directory
==============================
include (${QT_USE_FILE})
set (eSpy_SRCS
currentusage.cpp
detailedusage.cpp
kbandwidthmanager.cpp
sqliteengine.cpp
sqlite3.c
sdailyusage.cpp
main.cpp
)
set (eSpy_MOCS
currentusage.h
sdailyusage.h
detailedusage.h
kbandwidthmanager.h
)
set (eSpy_RCCS
resources.qrc
)
qt4_add_resources (eSpy_RCC_SRCS ${eSpy_RCCS})
qt4_wrap_cpp (eSpy_MOC_SRCS ${eSpy_MOCS})
add_executable (eSpy ${eSpy_SRCS} ${eSpy_RCC_SRCS} ${eSpy_MOC_SRCS})
target_link_libraries (eSpy ${QT_LIBRARIES})
install(TARGETS eSpy DESTINATION bin)
===========================ENDS
After configuring with command
'cmake ..'
project is still compiled with default values of these variables.
Can you suggest what I am doing wrong?
Regards
--
Yogesh M
More information about the CMake
mailing list