Skip to content

Commit

Permalink
Add build artifacts for appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
karimnaaji committed Jan 24, 2017
1 parent def4455 commit ba3ae21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ list(REMOVE_DUPLICATES INCLUDE_DIRS)
set(INCLUDE_DIRS ${INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/platform)

if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(EXECUTABLE_NAME vectiler)
set(VECTILER_SOURCES ${VECTILER_SOURCES} ${PROJECT_SOURCE_DIR}/platform/windows_httpget.cpp)
else()
set(EXECUTABLE_NAME vectiler.out)
find_package(CURL)
if(CURL_FOUND)
set(INCLUDE_DIRS ${INCLUDE_DIRS} ${CURL_INCLUDE_DIR})
Expand All @@ -46,13 +48,13 @@ set(INCLUDE_DIRS ${INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/3rdparty/earcut.hpp/inclu
set(INCLUDE_DIRS ${INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/3rdparty/flag)

include_directories(${INCLUDE_DIRS})
add_library(vectiler ${VECTILER_SOURCES})
add_executable(vectiler.out ${C_SOURCES})
add_library(vectiler_core ${VECTILER_SOURCES})
add_executable(${EXECUTABLE_NAME} ${C_SOURCES})

if (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
target_link_libraries(vectiler.out ${VECTILER_LIBS} vectiler)
target_link_libraries(${EXECUTABLE_NAME} ${VECTILER_LIBS} vectiler_core)
else()
target_link_libraries(vectiler.out ${VECTILER_LIBS} vectiler -lcurl)
target_link_libraries(${EXECUTABLE_NAME} ${VECTILER_LIBS} vectiler_core -lcurl)
endif()

# if (BUILD_TESTS)
Expand Down
4 changes: 3 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ build_script:
- cd build
- cmake .. -G "Visual Studio 14 2015 Win64"
- cmake --build .

artifacts:
- path: \build\Debug\vectiler.exe
name: vectiler

0 comments on commit ba3ae21

Please sign in to comment.