diff --git a/.gitignore b/.gitignore index f7025dd7..be468414 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /build* /test_data/*_test.xml /test/CMakeLists.txt.user +/.vs +/out \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e83b8c0..b0b85405 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,6 +18,8 @@ else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") endif() +add_definitions("/EHsc") + ############################################################# find_package(ament_cmake QUIET) if(ament_cmake_FOUND) @@ -140,11 +142,6 @@ endif() QT5_WRAP_UI(FORMS_HEADERS ${FORMS_UI}) -add_library(behavior_tree_editor SHARED - ${APP_CPPS} - ${FORMS_HEADERS} -) - SET(GROOT_DEPENDENCIES QtNodeEditor ) if(ament_cmake_FOUND) @@ -159,11 +156,8 @@ if( ZMQ_FOUND ) SET(GROOT_DEPENDENCIES ${GROOT_DEPENDENCIES} zmq) endif() -target_link_libraries(behavior_tree_editor ${GROOT_DEPENDENCIES} ) - - -add_executable(Groot ./bt_editor/main.cpp ${RESOURCE_FILES}) -target_link_libraries(Groot behavior_tree_editor ) +add_executable(Groot ./bt_editor/main.cpp ${APP_CPPS} ${FORMS_HEADERS} ${RESOURCE_FILES}) +target_link_libraries(Groot ${GROOT_DEPENDENCIES} ) add_subdirectory(test) @@ -190,12 +184,10 @@ else() endif() -INSTALL(TARGETS behavior_tree_editor LIBRARY DESTINATION ${GROOT_LIB_DESTINATION} ) INSTALL(TARGETS Groot RUNTIME DESTINATION ${GROOT_BIN_DESTINATION} ) if(ament_cmake_FOUND) ament_export_include_directories(include) ament_export_dependencies(${GROOT_DEPENDENCIES} ${dependencies}) - ament_export_libraries(behavior_tree_editor) ament_package() endif()