Skip to content

Commit

Permalink
windows build support
Browse files Browse the repository at this point in the history
  • Loading branch information
bigeagle committed May 26, 2015
1 parent c33bf20 commit 68f04be
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
*.pyc
*.egg-info
/build
/win-build
/dist
__pycache__
CMakeLists.txt.user
*.swp
*~
11 changes: 11 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ set(QT_USE_QTNETWORK TRUE)
include(${QT_USE_FILE})
add_definitions(${QT_DEFINITIONS})

if (WIN32)
set(CMAKE_PREFIX_PATH "C:/Program Files/qjson/lib/cmake/qjson/")
find_library (QJSON_LIBRARIES
"C:/Program Files/qjson/lib"
${QJSON_LIBRARY_DIRS}
${LIB_INSTALL_DIR}
)
include_directories("C:/Program Files/qjson/include")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mwindows")
endif(WIN32)

find_package(QJSON REQUIRED)

add_executable(danmaQ ${danmaQ_SOURCES} ${danmaQ_HEADERS_MOC})
Expand Down

0 comments on commit 68f04be

Please sign in to comment.