Skip to content

Instantly share code, notes, and snippets.

cmake_minimum_required(VERSION 2.8.12)
set(CTEST_USE_LAUNCHERS ON CACHE BOOL "Use CTest launchers")
add_executable(myexe myexe.cpp)
add_library(mylib mylib.cpp mylib.hpp)
target_link_libraries(myexe mylib)
include(CTest)
@ngladitz
ngladitz / CMakeLists.txt
Created March 9, 2015 11:31
cbp Testcase
cmake_minimum_required(VERSION 3.0)
add_executable(foo foo.cpp)
target_compile_definitions(foo PRIVATE FOO)
add_executable(bar bar.cpp)
target_compile_definitions(bar PRIVATE BAR)
@ngladitz
ngladitz / test.py
Created April 16, 2016 07:27
buildbot log test
import sys
sys.stdout.write("Line1\n")
sys.stdout.write("Line2\n")
sys.stdout.write("Line3\r\n")
sys.stdout.write("Line4\r\n")
sys.stdout.write("Line5\n")
sys.stdout.write("Line6\n")
@ngladitz
ngladitz / CMakeLists.txt
Created April 22, 2016 15:03
debug symbols
cmake_minimum_required(VERSION 3.4)
file(WRITE foo.cpp "int main() {}")
add_executable(foo foo.cpp)
add_custom_target(foo-dump ALL COMMAND ${CMAKE_OBJDUMP} --debugging $<TARGET_FILE:foo>)