Visual studio cmake dll path12/20/2023 ![]() ![]() Now I just gotta work on building a find_package that can tolerate different dll’s depending on whether the configuration mode is Debug or Release… Sigh… CMake is not my favorite tool. Not pretty, but does solve the problem of the two separate pieces of code elegantly working together… Mentions, so instead I cobbled mine together from the objLoader Cinder sample: # For cmake_pathĬmake_minimum_required( VERSION 3.20 FATAL_ERROR )Ĭmake_path(SET CINDER_PATH "D:/SDKS/cinder_0.9.2_vc2015")Ĭmake_path(SET APP_PATH "$ -E copy_if_different # which executes "cmake - E copy_if_different." ![]() For already-built libraries IMPORTED library target should be used. I couldn’t find the sample CMake file that this page: building the sdl2 source code with cmake in visual studio produces 3 things SDL2 (shared Library) SDL2main (static library) and SDL2-static (static library). The line addlibrary (SDL2 SDL2.dll) is wrong: it defines a library which should be built by CMake. In which the author is experiencing the exact issue I’m currently seeing, except whether I use win32 or 圆4, I keep getting the same error. boost/boost147/lib to my command PATH environment variable, so the boost unittestframework dlls can be found at run time. That said, I’m getting the following error trying to generate my project:ĬMake Error at dependencies/cinder/proj/cmake/modules/cinderMakeApp.cmake:65 (find_package):Ĭould not find a package configuration file … Assuming you are running your tests by building the RUNTESTS target in Visual Studio: I always add. Starting in Visual Studio 2022 version 17.1 Preview 2, if your top-level CMakeLists. My day to day work flow is on Windows 10 however and I understand CMake support on windows is “experimental”. I’m pretty new to CMake but am really enjoying it so far. I’m moving my build system to CMake and I’m digging all the awesome support that has been added recently. Using cmake to generate cinder projects on windows Using Cinder ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |