0
私はClion 2016.1.1で静的ライブラリにリンクされたアプリケーションをデバッグしたいのですが、ターゲットをデバッグモードで実行すると、定義されたブレークポイントで実行が中断されません。Clionで静的ライブラリにリンクされたアプリケーションにブレークポイントを挿入する方法は?
はSIGSEGV
があれば、それは破るよしかし、ここで私が、/ usr/binに切り替え
私CmakeLists.txt
# Header files
set(HEADER_FILES include/game/Game.h)
# Source files
set(SOURCE_FILES src/game/Game.cpp)
# gameengine library
add_library(gameengine STATIC ${HEADER_FILES} ${SOURCE_FILES})
# gamesample executable
add_executable(gamesample src/main.cpp) # I'd like to debug step
target_link_libraries(gamesample gameengine)
# tests
include_directories(lib/googletest)
enable_testing()
add_executable(tests test/tests.cpp)
target_link_libraries(tests gameengine)
target_link_libraries(tests gtest gtest_main)
add_test(NAME test COMMAND tests)