if(WIN32) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SUBSYSTEM:CONSOLE") endif() add_executable( HogMaker HogMaker/HogFormat.cpp HogMaker/HogMaker.cpp )