X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=CMakeLists.txt;h=c87ef70f7e959a31c26801681d352885cc33c08e;hb=9e9b1836b6ed340f6be2cc7ea9f67be69fa6b3b2;hp=e65c529f322a39b6047c3e406eb82fbd90fadb66;hpb=48412ffde3dd4710c96d5e8d9cfdf1789e4d703a;p=apitrace diff --git a/CMakeLists.txt b/CMakeLists.txt index e65c529..c87ef70 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,6 +178,12 @@ include_directories (${PNG_INCLUDE_DIR}) add_definitions (${PNG_DEFINITIONS}) link_libraries (${PNG_LIBRARIES}) +if (MSVC) + add_subdirectory (thirdparty/getopt EXCLUDE_FROM_ALL) + include_directories (${CMAKE_CURRENT_SOURCE_DIR}/thirdparty/getopt) + set (GETOPT_LIBRARIES getopt_bundled) +endif () + # The Qt website provides binaries for Windows and MacOSX, and they are # automatically found by cmake without any manual intervention. The situation # for QJSON is substantially different: there are no binaries for QJSON @@ -271,6 +277,7 @@ else () endif () add_library (common STATIC + common/trace_callset.cpp common/trace_dump.cpp common/trace_file.cpp common/trace_file_read.cpp