diff --git a/spectrum/src/CMakeLists.txt b/spectrum/src/CMakeLists.txt index a9d7413c..84253e7c 100644 --- a/spectrum/src/CMakeLists.txt +++ b/spectrum/src/CMakeLists.txt @@ -1,13 +1,13 @@ cmake_minimum_required(VERSION 2.6) FILE(GLOB SRC *.cpp) -if (WIN32) -FILE(GLOB WIN_SRC win32/*.cpp) -include_directories(win32) -ADD_EXECUTABLE(spectrum2 ${SRC} ${WIN_SRC}) -else() +# if (WIN32) +# FILE(GLOB WIN_SRC win32/*.cpp) +# include_directories(win32) +# ADD_EXECUTABLE(spectrum2 ${SRC} ${WIN_SRC}) +# else() ADD_EXECUTABLE(spectrum2 ${SRC}) -endif() +# endif() diff --git a/spectrum/src/main.cpp b/spectrum/src/main.cpp index 9a857f6c..c56aef33 100644 --- a/spectrum/src/main.cpp +++ b/spectrum/src/main.cpp @@ -30,7 +30,7 @@ #else #include #define getpid _getpid -#include "win32/SpectrumService.h" +// #include "win32/SpectrumService.h" #endif #include @@ -155,9 +155,9 @@ int main(int argc, char **argv) ("version,v", "Shows Spectrum version") ; #ifdef WIN32 - desc.add_options() - ("install-service,i", "Install spectrum as Windows service") - ("uninstall-service,u", "Uninstall Windows service"); +// desc.add_options() +// ("install-service,i", "Install spectrum as Windows service") +// ("uninstall-service,u", "Uninstall Windows service"); #endif try { @@ -187,6 +187,7 @@ int main(int argc, char **argv) no_daemon = true; } #ifdef WIN32 +#if 0 if (vm.count("install-service")) { SpectrumService ntservice; if (!ntservice.IsInstalled()) { @@ -224,7 +225,7 @@ int main(int argc, char **argv) return 1; } } - +#endif #endif } catch (std::runtime_error& e)