  
          /* Get base name of file */
          headername = fs::basename( outputpath );
-@@ -259,7 +264,7 @@ int _tmain(int argc, _TCHAR* argv[])
+@@ -259,7 +265,7 @@ int _tmain(int argc, _TCHAR* argv[])
          /* Process input files based on provided list */
          if ( opt.count( "input-file" ) )
          {

diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..f5b568e
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,19 @@
+cmake_minimum_required(VERSION 3.12)
+project(wxInclude)
+include(flags)
+set(XP_MODULE_PATH ${CMAKE_MODULE_PATH})
+xpFindPkg(PKGS boost)
+add_executable(${CMAKE_PROJECT_NAME} wxInclude.cpp)
+target_link_libraries(${CMAKE_PROJECT_NAME} PRIVATE Boost::filesystem Boost::program_options)
+string(TOLOWER ${PROJECT_NAME} prj)
+install(TARGETS ${CMAKE_PROJECT_NAME} EXPORT ${prj}-targets
+  RUNTIME DESTINATION bin

   input.seekg( 0, std::ios::beg );
 
   int c = 0;
@@ -130,7 +137,7 @@ void definefile( std::ostringstream& data, fs::ifstream& input, std::string& nam
       Still faster then the optimized boost::format use, but not that much!
     */
     static char temp[5];
