Getting CMake to find flex on Windows
问题 I am trying to use flex on a project and I am trying to use CMake to link flex with my project. I found a FindFLEX.cmake online which I am using for this. You can find it here. This was supposed to be in CMake by default, but I dont think it was. My directory structure is as follows root ---src ---CMakeLists.txt ---cmake ---Modules ---FindFLEX.cmake ---build ---external ---flex - Where flex is installed ---bin ---flex.exe ---lib ---libfl.a My src/CMakeLists.txt is as follows cmake_minimum