Last active
January 6, 2021 22:32
-
-
Save uilianries/a5f6f139e02dc953b935819ac2b4d6c0 to your computer and use it in GitHub Desktop.
Conan Boost + CMake + TestLink
This file contains hidden or 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
rm -rf build | |
mkdir build | |
pushd build | |
conan install .. | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_VERBOSE_MAKEFILE=ON | |
cmake --build . | |
./TestLink | |
This file contains hidden or 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
cmake_minimum_required(VERSION 3.1) | |
project(TestLink) | |
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | |
conan_basic_setup() | |
link_directories(${CMAKE_SOURCE_DIR}/libs) | |
add_executable(${CMAKE_PROJECT_NAME} src/test.cpp) | |
target_link_libraries(${CMAKE_PROJECT_NAME} ${CONAN_LIBS} GL Xxf86vm Xext X11 Xcursor) | |
set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}") | |
set_target_properties(${CMAKE_PROJECT_NAME} PROPERTIES CXX_STANDARD 17) |
This file contains hidden or 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
[requires] | |
boost/1.70.0@conan/stable | |
[generators] | |
cmake |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment