In order to switch between building the files in executable_ver and library_ver.
You will edit the CMakeLists.txt, which is as follows:
- CMakeLists.txt >
option(BUILD_EXECUTABLE "Build as executable instead of lib" ON)
>set(BUILD_EXECUTABLE OFF)
- if BUILD_EXECUTABLE is OFF, the Library_ver files will be compiled and produce a .dll file
- Otherwise if set to ON; will produce and .exe
Edit the set() function to ON or OFF as desired.
This is the last function that edits the BUILD_EXECUTABLE variable.
Alternatively just delete the set(BUILD_EXECUTABLE OFF)
entirely.