-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from madebr/pr_wtl
wtl: add cmake generator in test_package
- Loading branch information
Showing
3 changed files
with
10 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
from conans import ConanFile, tools | ||
|
||
import os | ||
|
||
|
||
class WTLConan(ConanFile): | ||
name = "wtl" | ||
license = "MS-PL" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
cmake_minimum_required(VERSION 2.8.12) | ||
project(WTLTest CXX) | ||
project(test_package CXX) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup() | ||
|
||
find_package(wtl REQUIRED) | ||
|
||
add_executable(example example.cpp) | ||
set_property(TARGET example PROPERTY CXX_STANDARD 11) | ||
add_executable("${PROJECT_NAME}" example.cpp) | ||
set_property(TARGET "${PROJECT_NAME}" PROPERTY CXX_STANDARD 11) | ||
|
||
target_link_libraries(example wtl::wtl) | ||
target_link_libraries("${PROJECT_NAME}" wtl::wtl) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters