compiler) Your compiler lives in the C:Program Files (x86)mingw-w64 folder. Cmake_minimum_required(VERSION 3.10) project(expatTraining) if (CMAKE_GENERATOR MATCHES "NMake Makefiles") message(INFO " NMake Makefiles here") SET(PC_EXPAT_LIBRARY_DIRS "C:/lib/nmake/bin") SET(PC_EXPAT_INCLUDE_DIRS C:/lib/nmake/include) list(APPEND CMAKE_MODULE_PATH "C:/lib/nmake/lib") list(APPEND CMAKE_PREFIX_PATH "C:/lib/nmake/lib") elseif (CMAKE_GENERATOR MATCHES "^Visual Studio 15 2017") message(INFO " Visual Stuhere") SET(PC_EXPAT_LIBRARY_DIRS "C:/lib/msvc/bin") SET(PC_EXPAT_INCLUDE_DIRS C:/lib/msvc/include) list(APPEND CMAKE_MODULE_PATH "C:/lib/msvc/lib") list(APPEND CMAKE_PREFIX_PATH "C:/lib/msvc/lib") elseif (CMAKE_GENERATOR MATCHES "MinGW Makefiles") message(INFO " MinGW Makefiles here") SET(PC_EXPAT_LIBRARY_DIRS "C:/lib/mingw/bin") SET(PC_EXPAT_INCLUDE_DIRS C:/lib/mingw/include) list(APPEND CMAKE_MODULE_PATH "C:/lib/mingw/lib") list(APPEND CMAKE_PREFIX_PATH "C:/lib/mingw/lib") else () message(INFO " another generator here") endif () set(CMAKE_CXX_STANDARD 11) FIND_PACKAGE(Expat REQUIRED) message(INFO " CMAKE_GENERATOR=$") add_executable(expatTraining main. In order to use CLion for graphics, we need a few additional components. I was (/am) really excited for this IDE but the hard dependence on cmake and only supporting old MinGW means I have not been able to have a try yet which is a.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |