Skip to content

Commit

Permalink
Merge b745ee0 into ffd4674
Browse files Browse the repository at this point in the history
  • Loading branch information
mloskot committed Jun 7, 2018
2 parents ffd4674 + b745ee0 commit 44f0cfb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/lib_proj.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ set_target_properties(${PROJ_CORE_TARGET}
##############################################
# Link properties
##############################################
set(PROJ_LIBRARIES ${PROJ_CORE_TARGET} )
set(PROJ_LIBRARIES ${PROJ_CORE_TARGET})
set(PROJ_LIBRARIES ${PROJ_LIBRARIES} PARENT_SCOPE) # hack, required for test/unit
if(UNIX)
find_library(M_LIB m)
if(M_LIB)
Expand Down
7 changes: 6 additions & 1 deletion test/unit/basic_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,18 @@
****************************************************************************/

#include "gtest_include.h"
#include <proj.h>
#include <memory>

namespace {

// ---------------------------------------------------------------------------

TEST( dumy, dummy ) {
ASSERT_EQ( 1 , 1 );
std::unique_ptr<PJ, decltype(&::proj_destroy)> pj(
::proj_create(PJ_DEFAULT_CTX, "+proj=merc +ellps=clrk66 +lat_ts=33"),
&::proj_destroy);
ASSERT_NE(pj, nullptr);
}

} // namespace

0 comments on commit 44f0cfb

Please sign in to comment.