qt creator - QtCreator with CMake: Access Denied when Reading Source Folder -



qt creator - QtCreator with CMake: Access Denied when Reading Source Folder -

my cmakelists.txt file looks this:

project(deadweight) # versioning set (deadweight_version_major 0) set (deadweight_version_minor 1) set( debug_build 1 ) add_definitions( -ddebug ) set(cmake_build_type debug) cmake_minimum_required(version 2.8) file(glob deadweight_src ./src "*.cpp") add_executable(${project_name} ${deadweight_src}) set_target_properties(${project_name} properties linker_language cxx)

upon loading qtcreator , running cmake (completes without errors btw), unable open source folder in qtcreator view. when click source folder says: "cannot open reading. access denied." sure have read-write permissions folder in question. can please point out if globbing source files incorrectly? or doing else wrong? cmake error or qtcreator problem?

edit: also, build fails saying: "missing source filename: file not found" error msvc++ 9 compiler.

your file command indeed problem. meant:

file(glob deadweight_src src/*.cpp)

as aside, single-configuration ides (like qtcreator) you'd set build type debug command line / cmake gui rather in cmakelists.txt. multi-configuration ides (like msvc) it's set within ide.

you don't need explicitly set linker language - should deduced automatically ".cpp" file extensions.

cmake qt-creator

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -